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

nginx startup error

nginx: [error] open() "/usr/local/nginx/nginx.pid" failed (2: No such file or directory)

Solution: Find the folder directory of your nginx.conf, and then run this

nginx -c /usr/local/etc/nginx/nginx.conf 

Run again

nginx -s reload

That’s it

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *