运行 NGINX 时出现问题

运行 NGINX 时出现问题

我有一个 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。也成功了。

请帮忙

相关内容