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

重启 nginx -s reload 遇到:

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

解决方法:

pkill nginx && service nginx restart