VPS侦探论坛

 找回密码
 注册
查看: 7291|回复: 3

网站运行正常,偶尔会出现502错误

[复制链接]
发表于 2012-3-18 07:41:59 | 显示全部楼层 |阅读模式

网站已运行三个月,之前倒是没发现出现502错误,最近这两天出现的比较多下面是nginx错误日志,请军哥指点一下,错误在哪里

2012/03/18 00:22:28 [crit] 2120#0: *15 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 219.134.39.76, server: www.zzzxw.com, request: "GET /index.php?m=content&c=info&catid=6 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.zzzxw.com", referrer: "http://www.98seav.com/articlelist/?36-2.html"
2012/03/18 01:01:05 [crit] 2127#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 121.14.162.47, server: www.zzzxw.com, request: "GET /index.php?m=content&c=info&catid=8 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.zzzxw.com", referrer: "http://www.98seav.com/"
2012/03/18 01:01:05 [crit] 2127#0: *11 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 61.163.72.82, server: www.zzzxw.com, request: "GET /index.php?m=content&c=info&areaid=15 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.zzzxw.com", referrer: "http://www.zzzxw.com/"
2012/03/18 01:01:05 [crit] 2127#0: *18 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 58.252.109.53, server: www.zzzxw.com, request: "GET /index.php?m=content&c=index&a=shows&catid=6&id=69358 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "zzzxw.com", referrer: "http://zzzxw.com/html/2012/xiyu_0204/69358.html"
2012/03/18 01:01:05 [crit] 2127#0: *16 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 117.254.10.123, server: www.zzzxw.com, request: "POST /index.php?m=member&c=index&a=register&siteid=1 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "zzzxw.com", referrer: "http://zzzxw.com/index.php?m=member&c=index&a=register&siteid=1"
2012/03/18 01:01:06 [crit] 2127#0: *25 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 123.150.182.119, server: www.zzzxw.com, request: "GET /index.php?m=member&c=index&a=mini&forward=http%3A%2F%2Fwww.zzzxw.com%2F&siteid=1 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.zzzxw.com", referrer: "http://www.zzzxw.com/"
2012/03/18 01:01:06 [crit] 2127#0: *27 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 123.150.182.119, server: www.zzzxw.com, request: "GET /index.php?m=announce&c=index&a=show&aid=1 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.zzzxw.com", referrer: "http://www.zzzxw.com/"
2012/03/18 01:01:06 [crit] 2127#0: *10 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 222.216.91.63, server: www.zzzxw.com, request: "GET /index.php?m=member&c=index&a=mini&forward=http%3A%2F%2Fwww.zzzxw.com%2Fhtml%2F2011%2Fqita_1117%2F61508.html&siteid=1 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.zzzxw.com", referrer: "http://www.zzzxw.com/html/2011/qita_1117/61508.html"
2012/03/18 01:01:06 [crit] 2127#0: *34 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 222.216.91.63, server: www.zzzxw.com, request: "GET /index.php?m=announce&c=index&a=show&aid=1 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.zzzxw.com", referrer: "http://www.zzzxw.com/html/2011/qita_1117/61508.html"
2012/03/18 01:01:06 [crit] 2127#0: *12 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 175.17.148.195, server: www.zzzxw.com, request: "GET /index.php?m=member&c=index&a=mini&forward=http%3A%2F%2Fwww.zzzxw.com%2F&siteid=1 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.zzzxw.com", referrer: "http://www.zzzxw.com/"
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-3-18 08:38:36 | 显示全部楼层


貌似是php-cgi没运行
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-3-18 09:00:35 | 显示全部楼层

根据统计显示,网站人数达到一定数量,比如2百人时就有可能出现502,这是因为php-cgi没运行呢?还是因为php-cgi不够用,我还没有改max_children默认值
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-3-18 10:13:33 | 显示全部楼层



增加点试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-16 23:53 , Processed in 0.026103 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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