Nginx invalid PID number

检测 nginx.conf
# /usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

启动 nginx
# /usr/sbin/nginx -s reload
nginx: [error] invalid PID number “” in “/var/run/nginx.pid”

解决方法
# /usr/sbin/nginx -c /your/full/path/nginx.conf

发表评论

电子邮件地址不会被公开。 必填项已用*标注