V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  hobbyliu  ›  全部回复第 41 页 / 共 42 页
回复总数  831
1 ... 33  34  35  36  37  38  39  40  41  42  
2015-05-29 15:20:19 +08:00
回复了 hobbyliu 创建的主题 职场话题 刚入职新公司,太清闲,感觉非常不适应,我该如何办?
@JackCooper 我们专业互联网公司好么,业内也算是老大,4个字你们猜?
2015-05-28 15:13:41 +08:00
回复了 hobbyliu 创建的主题 职场话题 刚入职新公司,太清闲,感觉非常不适应,我该如何办?
@holy_sin it 公司i
2015-05-28 14:29:27 +08:00
回复了 njutree 创建的主题 程序员 携程网挂了,据说被黑客删掉了服务器
最新消息:阿里修光纤 工人在作业过程中把携程的挖断了
2015-05-28 11:06:13 +08:00
回复了 hobbyliu 创建的主题 职场话题 刚入职新公司,太清闲,感觉非常不适应,我该如何办?
@davepkxxx 我怀疑我得病了
2015-05-28 10:57:14 +08:00
回复了 hobbyliu 创建的主题 职场话题 刚入职新公司,太清闲,感觉非常不适应,我该如何办?
@lijinma 同感啊,这样很闲了 都不知道学什么了。还不如忙一些
2015-05-28 10:09:12 +08:00
回复了 hobbyliu 创建的主题 职场话题 刚入职新公司,太清闲,感觉非常不适应,我该如何办?
@Muninn 是自制力不太强,人有惰性
2015-05-27 14:58:56 +08:00
回复了 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-05-27 14:47:07 +08:00
回复了 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-05-27 14:40:54 +08:00
回复了 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
2015-05-27 11:31:31 +08:00
回复了 hobbyliu 创建的主题 问与答 设置了 WEB 目录 777 权限, nginx 依旧提示 403. 求大神解析。
@lsj5031 但是我设置 /home/hobby 777 ,为何还是不行呢
2015-05-27 11:19:59 +08:00
回复了 hobbyliu 创建的主题 问与答 设置了 WEB 目录 777 权限, nginx 依旧提示 403. 求大神解析。
@lzk800 确实没有NGINX用户,我注释掉此行?还是换成 user www?
2015-05-27 11:12:36 +08:00
回复了 hobbyliu 创建的主题 问与答 设置了 WEB 目录 777 权限, nginx 依旧提示 403. 求大神解析。
@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;
}
```
2015-05-27 11:11:41 +08:00
回复了 hobbyliu 创建的主题 问与答 设置了 WEB 目录 777 权限, nginx 依旧提示 403. 求大神解析。
```
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-05-25 19:38:04 +08:00
回复了 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-05-25 19:35:56 +08:00
回复了 hobbyliu 创建的主题 GitHub 打算搭建一个私有 github, 有推荐的吗,除了 GITLAB
@Muninn 和我父亲商量商量。不给钱也没法。。
@openroc 巨2 那 s 呢?
@Tyler1989 没别的意思,我有收集头像的爱好。
@ChanneW 如何做 说说思路?
1 ... 33  34  35  36  37  38  39  40  41  42  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1093 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms · UTC 22:48 · PVG 06:48 · LAX 15:48 · JFK 18:48
Developed with CodeLauncher
♥ Do have faith in what you're doing.