lnmp问题排查:页面502

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

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

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

中获取错误信息

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

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

重启LNMP

查看lnmp的状态:# lnmp status

停止:# lnmp stop

启动:# lnmp start

猜你喜欢

转载自blog.csdn.net/a_jie_2016_05/article/details/81950616