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

解决:

1. 执行:nginx -c /etc/nginx/nginx.conf

/etc/nginx/nginx.conf  是 ng 配置文件路径

2. 执行:nginx -s reload

posted on 2021-12-25 17:41  W1N9s  阅读(101)  评论(0编辑  收藏  举报