NGINX重启发生报错 nginx: [error] open() “/run/nginx.pid“ failed

时间:2022-11-05 23:00:39


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

解决方法

nginx -c /etc/nginx/nginx.conf
执行 nginx -s reload 重启nginx