V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  hobbyliu  ›  全部回复第 43 页 / 共 44 页
回复总数  870
1 ... 35  36  37  38  39  40  41  42  43  44  
@holy_sin it 公司i
2015 年 5 月 28 日
回复了 njutree 创建的主题 程序员 携程网挂了,据说被黑客删掉了服务器
最新消息:阿里修光纤 工人在作业过程中把携程的挖断了
@davepkxxx 我怀疑我得病了
@lijinma 同感啊,这样很闲了 都不知道学什么了。还不如忙一些
@Muninn 是自制力不太强,人有惰性
2015 年 5 月 27 日
回复了 hobbyliu 创建的主题 问与答 nginx + php-fpm 无法解析 php 文件的问题
@shiny
```
#user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;

pid /run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

index index.html index.htm;


##############################
server {
listen 80;
server_name lumentest;
root /home/hobby/service;
#root /usr/share/nginx/html;
index index.html index.htm;

#charset koi8-r;

#access_log logs/host.access.log main;

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
2015 年 5 月 27 日
回复了 hobbyliu 创建的主题 问与答 nginx + php-fpm 无法解析 php 文件的问题
@endoffight 加了 无效
location ~ \.php$ { |~
root /home/hobby/service; |~
fastcgi_pass 127.0.0.1:9000; |~
fastcgi_index index.php; |~
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |~
include fastcgi_params; |~
}
2015 年 5 月 27 日
回复了 hobbyliu 创建的主题 问与答 nginx + php-fpm 无法解析 php 文件的问题
可以确定,PHP-FPM 监听9000 端口正常
[root@localhost ~]# netstat -npa | grep 9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 2142/php-fpm: maste
@lsj5031 但是我设置 /home/hobby 777 ,为何还是不行呢
@lzk800 确实没有NGINX用户,我注释掉此行?还是换成 user www?
@lzk800

```
user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;

pid /run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

index index.html index.htm;

# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
=====================================
server {
listen 80;
server_name lumentest;
root /home/hobby/service;
#root /usr/share/nginx/html;
index index.html index.htm;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /home/hobby/service;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
```
```
user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;

pid /run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

index index.html index.htm;

# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
=====================================
server {
listen 80;
server_name lumentest;
root /home/hobby/service;
#root /usr/share/nginx/html;
index index.html index.htm;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /home/hobby/service;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
```
@vaynewang 这样的域名,有人买吗?
2015 年 5 月 25 日
回复了 hobbyliu 创建的主题 GitHub 打算搭建一个私有 github, 有推荐的吗,除了 GITLAB
@clino golang.org 被墙,好多包导入失败怎么办
```
go get -v golang.org/x/net/html
Fetching https://golang.org/x/net/html?go-get=1
https fetch failed.
Fetching http://golang.org/x/net/html?go-get=1
import "golang.org/x/net/html": http/https fetch: Get http://golang.org/x/net/html?go-get=1: dial tcp 173.194.72.141:80: i/o timeout
package golang.org/x/net/html: unrecognized import path "golang.org/x/net/html"

```
2015 年 5 月 25 日
回复了 hobbyliu 创建的主题 GitHub 打算搭建一个私有 github, 有推荐的吗,除了 GITLAB
@Muninn 和我父亲商量商量。不给钱也没法。。
@openroc 巨2 那 s 呢?
@Tyler1989 没别的意思,我有收集头像的爱好。
@ChanneW 如何做 说说思路?
@randyzhao 聚二手
1 ... 35  36  37  38  39  40  41  42  43  44  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2810 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 12:59 · PVG 20:59 · LAX 05:59 · JFK 08:59
♥ Do have faith in what you're doing.