【nginx】connect() failed (111: Connection refused) while connecting to upstream connect() to unix:/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream
1. 查看nginx错误日志
connect() failed (111: Connection refused) while connecting to upstream connect() to unix:/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream
2. 原因,由于重新升级系统之后,导致php-fpm服务异常,服务起不来
3. 处理方法
sudo service php7.4-fpm restart
参考链接:https://stackoverflow.com/questions/51158830/nginx-connect-to-unix-var-run-php7-2-fpm-sock-failed-2-no-such-file-or-dir