lnmp问题排查:页面502

1、从/usr/local/nginx/conf/nginx.conf中的  error_log  /home/wwwlogs/nginx_error.log,从日志中获取错误信息。

lnmp问题排查:页面502

2、  从/usr/local/nginx/conf/vhost/{host}.conf文件中的日志文件

         access_log  /data/www/logs/{host}_access.log;
         error_log   /data/www/logs/{host}_error.log ;

中获取错误信息

lnmp问题排查:页面502

lnmp问题排查:页面502

3、修改php-fpm.conf文件:

将 listen = /tmp/php-cgi.sock
改为:listen=127.0.0.1:9000

lnmp问题排查:页面502

 

 

重启LNMP

查看lnmp的状态:# lnmp status

停止:# lnmp stop

启动:# lnmp start