Tag Archives: MAC Nginx Error

[Solved] MAC Nginx Error: ginx.pid“ failed (2: No such file or directory)

(base) li@lideMacBook-Pro ~ % nginx -s reload
nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)

The problem is that nginx.pid can’t be found, so there is an error in reload. It’s certain that the nginx service hasn’t started at this time. Start nginx, and then there is PID. This problem is solved.