y1219 发表于 2012-4-14 18:27:43

之前0.7版本没出现过502,怎么用了0.8老是出现502

之前0.7版本没出现过502,新开了服务器,用了0.8老是出现502
怎么回事?

licess 发表于 2012-4-14 21:42:49

这个不好说,需要看日志
/home/wwwlogs/nginx_error.log

y1219 发表于 2012-4-15 07:33:07

/home/wwwlogs/nginx_error.log的日志
麻烦军歌帮忙看看是怎么回事

2012/04/09 18:31:21 2058#0: *2761 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 61.171.29.191, server: shanghai.51bieshu.com, request: "GET /p.php?act=rt&callback=jsonp1333966943856&_=1333967454383 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "175.102.1.111", referrer: "http://175.102.1.111/p.php"
2012/04/10 21:54:52 2108#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 65.52.104.88, server: *.123.com, request: "GET /zsj/0-2271-5-12-5-2-0/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "sh.123.com"
2012/04/10 21:54:52 2108#0: *3 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 207.46.195.105, server: *.123.com, request: "GET /zsj/0-523-20-5-4-0-0/ HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "sh.123.com"
2012/04/10 21:54:52 2108#0: *5 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 207.46.195.105, server: www.123.com, request: "GET /zsj/1-0-3-7-5-4-0/ HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.123.com"
2012/04/11 09:42:43 4592#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/11 16:04:55 2117#0: *2 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 65.52.110.16, server: *.123.com, request: "GET /zsj/0-1547-20-6-0-0-0/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "sh.123.com"
2012/04/11 20:47:25 2117#0: *46780 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 203.208.60.195, server: www.123.com, request: "GET /zsj/0-2962-0-14-6-4-0/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.123.com"
2012/04/11 21:20:52 29131#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

licess 发表于 2012-4-15 09:32:06

php-fpm没启动,启动就行了

yuweitaocn 发表于 2012-4-15 14:05:09

2012/04/11 21:20:52 29131#0: bind() to 0.0.0.0:80 failed (98: Address already in use你的端口被占用了。配置的文件有问题喔

y1219 发表于 2012-4-16 11:51:47

原帖由 licess 于 2012-4-15 09:32 发表 https://bbs.vpser.net/images/common/back.gif
php-fpm没启动,启动就行了
LNMP8.0默认安装没开启php-fpm吗?怎么会没启动?

y1219 发表于 2012-4-16 11:52:19

原帖由 yuweitaocn 于 2012-4-15 14:05 发表 https://bbs.vpser.net/images/common/back.gif
2012/04/11 21:20:52 29131#0: bind() to 0.0.0.0:80 failed (98: Address already in use你的端口被占用了。配置的文件有问题喔
我是默认安装的啊,怎么会端口被占用了,麻烦能否具体说明

licess 发表于 2012-4-16 13:20:26

如果nginx已经启动,再去start肯定会提示端口被占用

wfqvip 发表于 2012-4-16 15:10:29

sudo fuser -k -n tcp 80

sudo /etc/init.d/lnmp restart

id886 发表于 2012-4-17 10:02:37

如果老是现 502

升级到PHP 5.3    把php-fpm配制文件里的数值都加大一倍就OK了

y1219 发表于 2012-4-19 12:21:44

原帖由 licess 于 2012-4-16 13:20 发表 https://bbs.vpser.net/images/common/back.gif
如果nginx已经启动,再去start肯定会提示端口被占用
问题是我这边没有start啊,该怎么解决

y1219 发表于 2012-4-19 12:22:02

原帖由 wfqvip 于 2012-4-16 15:10 发表 https://bbs.vpser.net/images/common/back.gif
sudo fuser -k -n tcp 80

sudo /etc/init.d/lnmp restart
兄弟你说的 这个是什么意思?要重启吗?

y1219 发表于 2012-4-19 12:22:16

原帖由 id886 于 2012-4-17 10:02 发表 https://bbs.vpser.net/images/common/back.gif
如果老是现 502

升级到PHP 5.3    把php-fpm配制文件里的数值都加大一倍就OK了
能不能说的具体点,
页: [1]
查看完整版本: 之前0.7版本没出现过502,怎么用了0.8老是出现502