产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[综合话题] 又出现了 AMH5.0下LNMP环境内所有网站502错误

zmyamh
金牌会员
6028.52 价值分

zmyamh 发表于 2014-10-09 22:28:17
测试了一下 静态文件访问没有问题
动态文件访问就是502错误

网站日志如下:
2014/10/09 22:20:26 [crit] 1722#0: *349 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/%E9%9A%94%E8%A1%8C%E6%8D%A2%E8%89%B2 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:27 [crit] 1722#0: *351 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 113.246.136.101, server: xxoo.net, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net", referrer: "http://xxoo.net/wp-admin/options-general.php?page=super-static-cache-admin.php"
2014/10/09 22:20:29 [crit] 1722#0: *353 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/%E9%9F%B3%E4%B9%90 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:34 [crit] 1720#0: *356 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/%E9%AD%94%E5%85%BD%E4%B8%96%E7%95%8C HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:38 [crit] 1720#0: *358 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/2%E6%9C%88 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:42 [crit] 1720#0: *360 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/500%E9%94%99%E8%AF%AF HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:46 [crit] 1720#0: *362 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/gui%E8%AE%BE%E8%AE%A1 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:48 [crit] 1720#0: *365 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 198.245.49.180, server: xxoo.net, request: "GET /%E8%B5%84%E6%BA%90%E5%88%86%E4%BA%AB/4154.html HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:52 [crit] 1720#0: *367 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/iis%E6%97%A5%E5%BF%97 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:54 [crit] 1720#0: *369 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 198.245.49.180, server: xxoo.net, request: "GET /%E8%B5%84%E6%BA%90%E5%88%86%E4%BA%AB/4172.html HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:20:55 [crit] 1720#0: *370 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/lnmpa%E5%8D%87%E7%BA%A7 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
2014/10/09 22:21:00 [crit] 1720#0: *376 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/mysql%E6%97%A5%E5%BF%97 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
解决的办法还是在兼容模式跟安全模式下切换一次
2014-10-09 22:28:17 1

zmyamh
金牌会员
6028.52 价值分

好象是php没有启动?

我在AMH » LNMP环境应用 看虚拟主机的nignx跟php都是正常启动的状态

然后点击那个小数字先停掉所有的php,然后再重新开启

网站就可以正常访问木有502错误了 不知道是怎么回事


P.s 这个情况实在重启服务器之后出现的
  支持 (0分)  反对 (0分)
回复  2014-10-09 22:55:05 2

Amgsh
铁牌会员
34.00 价值分

我出现了这种情况,重启后发生过。但不是每次重启都会出现。
  支持 (0分)  反对 (0分)
回复  2014-10-10 09:56:19 3

amysql
创始人
99530.81 价值分

楼主是用什么版本的PHP?
  支持 (0分)  反对 (0分)
回复  2014-10-10 14:10:37 4

AMH面板 - 好用高效低占用、安全可靠极稳定

zmyamh
金牌会员
6028.52 价值分

引用:
amysql 发表于 2014-10-10 14:10
楼主是用什么版本的PHP?


nginx-1.6.0 mysql-5.5.37 php-5.5.13
  支持 (0分)  反对 (0分)
回复  2014-10-10 20:57:58 5

dahai
铁牌会员
114.00 价值分

我也遇到重启后就是502,必须切换到兼容或安全模式才能正常访问,我用的是nginx-generic-1.6.0 + mysql-generic-5.5.40 + php-5.4.29
  支持 (0分)  反对 (0分)
回复  2014-10-20 14:44:49 6

zmyamh
金牌会员
6028.52 价值分

引用:
dahai 发表于 2014-10-20 14:44
我也遇到重启后就是502,必须切换到兼容或安全模式才能正常访问,我用的是nginx-generic-1.6.0 + mysql-gen ...


那咱们俩差不多的症状了...不知道是为啥 我都不敢重启了
  支持 (0分)  反对 (0分)
回复  2014-10-20 20:18:10 7

addy
铝牌会员
348.65 价值分

表示503常有 哈哈!
  支持 (0分)  反对 (0分)
回复  2014-10-20 21:29:32 8

mingsz8
银牌会员
2247.85 价值分

我的网站今晚也有出现一次502,怎么解决
  支持 (0分)  反对 (0分)
回复  2014-10-20 23:43:47 9

zmyamh
金牌会员
6028.52 价值分

502这个问题其实蛮多原因的,还是要看下日志啥的仔细排查一下
  支持 (0分)  反对 (0分)
回复  2014-10-21 09:22:01 10
 1 2 3 >  (总3页)
AMH社区列表
用户服务中心