启动Nginx报错:nginx: [error] invalid PID number "" in "/var/run/nginx/nginx.pid"

nginx: [error] invalid PID number “” in “/var/run/nginx/nginx.pid”

[root@el6_51 sbin]# ./nginx -s reload
nginx: [error] invalid PID number "" in "/var/run/nginx/nginx.pid"

重新指向配置文件即可

[root@el6_51 sbin]# ./nginx -c /etc/nginx/nginx.conf
[root@el6_51 sbin]# ./nginx -s reload

你可能感兴趣的:(Nginx)