2017/05/24 03:00:28 [crit] 20645#0: *244319 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 208.64.28.194, server: www.99banzou.com, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/dev/shm/php-cgi.sock:",
这破问题纠结了我很多天,结果今天在这个网站找到了解决方法
https://www.scalescale.com/tips/nginx/php-fpm-connect-to-unixtmpphp5-fpm-sock-failed-2-no-such-file-or-directory/
其实方法很简单,把nginx配置里的fastcgi_pass改成 127.0.0.1:9000;就行。
暂时好像是解决问题了,重启那几个东西都没报错,速度也好像快了一点,观察一段时间再看!
网友评论