nginx: [error] invalid PID number ““ in “/usr/local/nginx/logs/nginx.pid“
1.场景 centos7x64 nginx-1.20.1.tar.gz 编译安装后 无法查询PID
nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
2.解决一
2.1查询reload配置
nginx -c /usr/local/nginx/conf/nginx.conf
然后再重载
./nginx -s reload
[root@localhost sbin]# ./nginx -s reload
[root@localhost sbin]# ps -aux | grep "nginx: master process"
root 34609 0.0 0.0 28284 1424 ? Ss 17:29 0:00 nginx: master process ./nginx -c /usr/local/nginx/conf/nginx.conf
root 34790 0.0 0.0 112812 984 pts/0 S+ 17:30 0:00 grep --color=auto nginx: master process
[root@localhost sbin]#