关于 Nginx 的 fastcgi_pass 配置错误
项目在 Nginx 下配置完成后访问报了 502 错误,查看 nginx 日志,发现错误信息为:
connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: x.x.x.x, server: xxx.xxx.xxx, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:"