Sunday, June 6, 2021

nginx.service: Failed to read PID from file /run/nginx.pid: Invalid argument


[ec2-user@ip-172-31-95-167 webpring-buxvue]$ sudo vi /etc/systemd/system/nginx.service.d/override.conf
[ec2-user@ip-172-31-95-167 webpring-buxvue]$ sudo cat /etc/systemd/system/nginx.service.d/override.conf
[Service]
ExecStartPost=/bin/sleep 0.1

[ec2-user@ip-172-31-95-167 webpring-buxvue]$ sudo systemctl daemon-reload
[ec2-user@ip-172-31-95-167 webpring-buxvue]$ sudo systemctl restart nginx
[ec2-user@ip-172-31-95-167 webpring-buxvue]$ sudo systemctl status nginx

No comments:

Post a Comment