VPS侦探论坛

 找回密码
 注册
查看: 7180|回复: 12

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

[复制链接]
发表于 2012-4-14 18:27:43 | 显示全部楼层 |阅读模式

之前0.7版本没出现过502,新开了服务器,用了0.8老是出现502
怎么回事?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-4-14 21:42:49 | 显示全部楼层


这个不好说,需要看日志
/home/wwwlogs/nginx_error.log
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-4-15 07:33:07 | 显示全部楼层

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

2012/04/09 18:31:21 [crit] 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 [crit] 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 [crit] 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 [crit] 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 [emerg] 4592#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/11 16:04:55 [crit] 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 [crit] 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 [emerg] 29131#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-4-15 09:32:06 | 显示全部楼层



php-fpm没启动,启动就行了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-4-15 14:05:09 | 显示全部楼层

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

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2012-4-16 11:51:47 | 显示全部楼层

原帖由 licess 于 2012-4-15 09:32 发表
php-fpm没启动,启动就行了

LNMP8.0默认安装没开启php-fpm吗?怎么会没启动?
 楼主| 发表于 2012-4-16 11:52:19 | 显示全部楼层

原帖由 yuweitaocn 于 2012-4-15 14:05 发表
2012/04/11 21:20:52 [emerg] 29131#0: bind() to 0.0.0.0:80 failed (98: Address already in use你的端口被占用了。配置的文件有问题喔

我是默认安装的啊,怎么会端口被占用了,麻烦能否具体说明
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-4-16 13:20:26 | 显示全部楼层

如果nginx已经启动,再去start肯定会提示端口被占用
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-4-16 15:10:29 | 显示全部楼层

sudo fuser -k -n tcp 80

sudo /etc/init.d/lnmp restart

军哥运维代购:http://shop63846532.taobao.com/

发表于 2012-4-17 10:02:37 | 显示全部楼层



如果老是现 502

升级到PHP 5.3    把php-fpm配制文件里的数值都加大一倍  就OK了
 楼主| 发表于 2012-4-19 12:21:44 | 显示全部楼层

原帖由 licess 于 2012-4-16 13:20 发表
如果nginx已经启动,再去start肯定会提示端口被占用

问题是我这边没有start啊,该怎么解决
 楼主| 发表于 2012-4-19 12:22:02 | 显示全部楼层

原帖由 wfqvip 于 2012-4-16 15:10 发表
sudo fuser -k -n tcp 80

sudo /etc/init.d/lnmp restart

兄弟你说的 这个是什么意思?要重启吗?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-4-19 12:22:16 | 显示全部楼层
原帖由 id886 于 2012-4-17 10:02 发表
如果老是现 502

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

能不能说的具体点,
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 19:39 , Processed in 0.029502 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表