[Solved] Nginx restart error: nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)

Error Message: nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)

 

Solution:
1. Execute: nginx -c /etc/nginx/nginx.conf
/etc/nginx/nginx.conf is the path of ng configuration file
2. Execution: nginx -s reload

 

Similar Posts: