Nginx 서비스가 무작위로 실패하는 것을 경험했는데 그 이유가 무엇인지 잘 모르겠습니다.
syslog
다음을 수행할 때 다음을 제공합니다 cat syslog | grep
.
Aug 23 00:00:06 serv4 systemd[1]: nginx.service: Succeeded.
Aug 23 00:00:06 serv4 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Aug 23 00:00:06 serv4 systemd[1]: nginx.service: Succeeded.
Aug 23 00:00:06 serv4 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Aug 23 00:00:06 serv4 systemd[1]: nginx.service: Succeeded.
Aug 23 00:00:06 serv4 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Aug 23 00:00:06 serv4 systemd[1]: nginx.service: Succeeded.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Succeeded.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Succeeded.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Start request repeated too quickly.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Failed with result 'start-limit-hit'.
Aug 23 00:00:07 serv4 logrotate[1506419]: Job for nginx.service failed.
Aug 23 00:00:07 serv4 logrotate[1506419]: See "systemctl status nginx.service" and "journalctl -xe" for details.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Start request repeated too quickly.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Failed with result 'start-limit-hit'.
Aug 23 00:00:07 serv4 logrotate[1506425]: Job for nginx.service failed.
Aug 23 00:00:07 serv4 logrotate[1506425]: See "systemctl status nginx.service" and "journalctl -xe" for details.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Start request repeated too quickly.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Failed with result 'start-limit-hit'.
Aug 23 00:00:07 serv4 logrotate[1506430]: Job for nginx.service failed.
Aug 23 00:00:07 serv4 logrotate[1506430]: See "systemctl status nginx.service" and "journalctl -xe" for details.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Start request repeated too quickly.
Aug 23 00:00:07 serv4 systemd[1]: nginx.service: Failed with result 'start-limit-hit'.
nginx -t
나에게 다음을 제공합니다 :
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful