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

 

相关文章:

  • 2021-07-16
  • 2022-01-03
  • 2021-09-04
  • 2021-07-07
  • 2021-05-08
  • 2022-03-06
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-01-13
  • 2021-06-29
相关资源
相似解决方案