刚装好 NGINX 服务, 启动时报错
- [root@localhost nginx]# sbin/nginx -s reload
- nginx: [error] invalid PID number ""in"/usr/local/nginx/logs/nginx.pid"
解决方法:
启动时需指定配置文件
[root@localhost nginx]# sbin/nginx -c /usr/local/nginx/conf/nginx.conf // 指定配置文件 ``
来源: http://www.bubuko.com/infodetail-2867008.html