开发者社区> 问答> 正文

php-cgi sock failed求救啊 突然就nginx 502 Bad Gateway

nginx error log :


2017/09/08 09:58:53 [crit] 1567#0: *29 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 121.35.209.65, server: www.xxx.com, request: "GET /demo-pes/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.xxx.com"


基本上都是 unix:/tmp/php-cgi.sock failed


就连探针都打不开。

展开
收起
泽智 2017-09-08 11:27:42 4240 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    楼主您好,

    请问您的php-fpm进程有没有先启动呀?
    2017-09-09 11:51:31
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PHP 2017.北京 全球开发者大会——高可用的PHP 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载