首页 > 其他 > 详细

nginx 502错误

时间:2015-12-16 09:39:31      阅读:557      评论:0      收藏:0      [点我收藏+]

[root@yaho nginx]# curl localhost/i.php

<html>

<head><title>502 Bad Gateway</title></head>

<body bgcolor="white">

<center><h1>502 Bad Gateway</h1></center>

<hr><center>nginx/1.4.4</center>

</body>

</html>



原因:php-fpm.conf  里的 listen =/tmp/php-abc.sock和 nginx.conf里  fastcgi_pass unix:/tmp/php-abc.sock;不一致,修改一致解决问题.

nginx 502错误

原文:http://752030200.blog.51cto.com/8936921/1723396

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!