一切都是这样开始的: 我在服务器上有Apache2,php7.2,php7.2-fpm,nginx。 然后我删除php7.2,php7.2-fpm,并安装php7.3,php7.3-fpm
服务器:Amazon EC2 操作系统:Ubuntu 18
当我想重新启动Nginx时,发生错误:
**sudo service nginx restart**
Failed to restart nginx.service: Unit nginx.service is not loaded properly: Bad message. See system logs and 'systemctl status nginx.service' for details
**systemctl status nginx.service**
●已加载nginx.service:错误(原因:错误消息)活动:不活动(不活动)
1月10日19:03:54 ip-172-31-33-82 systemd [1]: /lib/systemd/system/nginx.service:1:Jan 10 19:11:29 ip-172-31-33-82 systemd [1]:/lib/systemd/system/nginx.service:1:Jan 10 19:11:43 ip-172-31-33-82 systemd [1]:/lib/systemd/system/nginx.service:1:Jan 10 19:15:51 ip-172-31-33-82 systemd [1]: /lib/systemd/system/nginx.service:1:Jan 10 19:38:16 ip-172-31-33-82 systemd [1]:/lib/systemd/system/nginx.service:1:Jan 11 04:23:11 ip-172-31-33-82 systemd [1]:/lib/systemd/system/nginx.service:1:Jan 11 04:23:31 ip-172-31-33-82 systemd [1]: /lib/systemd/system/nginx.service:1:Jan 11 04:26:40 ip-172-31-33-82 systemd [1]:/lib/systemd/system/nginx.service:1:Jan 11 04:26:41 ip-172-31-33-82 systemd [1]:/lib/systemd/system/nginx.service:1:Jan 11 04:26:43 ip-172-31-33-82 systemd [1]: /lib/systemd/system/nginx.service:1:第1-14 / 14行(结束)
但是当我键入 sudo nginx -s reload 。