我有一個 AWS Lightsail 實例,並在不同連接埠上執行 NGINX 和 apache。 (Apache 在 8080 上,Nginx 在 80 上)。它運作良好,但從早上開始,Nginx 停止工作,重新啟動時出現以下問題。我的任何網站都無法加載
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/nginx.service.d
└─override.conf
Active: active (running) since Wed 2020-08-26 09:09:59 UTC; 6s ago
Docs: man:nginx(8)
Process: 9892 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 9908 ExecStartPost=/bin/sleep 0.1 (code=exited, status=0/SUCCESS)
Process: 9906 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 9894 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 9907 (nginx)
Tasks: 2 (limit: 2348)
CGroup: /system.slice/nginx.service
├─9907 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
└─9909 nginx: worker process
Aug 26 09:09:59 ip-172-26-3-19 systemd[1]: Starting A high performance web server and a reverse proxy server...
Aug 26 09:09:59 ip-172-26-3-19 systemd[1]: Started A high performance web server and a reverse proxy server.
這是nginx的錯誤日誌
2020/08/26 06:17:09 [alert] 1930#1930: *20 open socket #18 left in connection 9
2020/08/26 06:17:09 [alert] 1930#1930: *35 open socket #17 left in connection 14
2020/08/26 06:17:09 [alert] 1930#1930: aborting
我已經嘗試過 nginx -t 。這也是成功的。
請幫忙解決這個問題