LNMP 的Nginx 502 Bad Gateway错误可能原因及解决方法

有的时候php-fpm会意外停掉,所以首先需要检查的是php-fpm的状态,如果是down状态,则需要开启。

systemctl status php-fpm

最好设置一下开机启动:systemctl enable php-fpm

猜你喜欢

转载自blog.51cto.com/1926500/2442743