/usr/local/nginx/sbin/nginx -s reload 时报invalid PID number报错

/usr/local/nginx/sbin/nginx -s reload

nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"

解决方法:

执行此命令 路径要正确

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

你可能感兴趣的:(/usr/local/nginx/sbin/nginx -s reload 时报invalid PID number报错)