1.Nginx配制后重启遇见的问题

1. 启动后,查看nginx状态异常

1.Nginx配制后重启遇见的问题_第1张图片

解决方案:

  1. ps -e|grep nginx 查看并杀掉所有进程
  2. systemctl start nginx.service启动nginx
  3. systemctl status nginx.service查看状态
  4. 如果还是不行执行做以下操作
    5.mkdir -p /etc/systemd/system/nginx.service.d
  5. printf “[Service]\nExecStartPost=/bin/sleep 0.1\n” > /etc/systemd/system/nginx.service.d/override.conf
  6. systemctl daemon-reload
  7. systemctl restart nginx.service

你可能感兴趣的:(nginx)