YiiWang

Linux开机重新加载Nginx配置文件时出错:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such f
问题Linux开机重新加载Nginx配置文件时出错:nginx: [error] open() "/usr/loc...
扫描右侧二维码阅读全文
05
2018/12

Linux开机重新加载Nginx配置文件时出错:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such f

问题

Linux开机重新加载Nginx配置文件时出错:
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

解决方法

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx -s reload

Last modification:December 5th, 2018 at 09:55 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment