Nginx+php7 502 Bad Gateway

2024-10-23 15:01:16

1、首先查找php-fpm位置:1.find / -name php-fpm;2.查看listen值;

Nginx+php7 502 Bad Gateway

3、使用grep查看 php-fpm是否运行;1.netstat -ant | grep 90002.结果为空,说明php-fpm未运行;

Nginx+php7 502 Bad Gateway

5、保存,并重启nginx;/usr/local/nginx/sbin/nginx -s reload

Nginx+php7 502 Bad Gateway
猜你喜欢