nginx -s reload操作失败
发布网友
发布时间:2022-04-24 03:13
我来回答
共1个回答
热心网友
时间:2022-05-11 17:30
在重启nginx时报错误。
wangkongming@ThinkPad-T410 ~ $ sudo /usr/sbin/nginx -s reload
nginx: [error] invalid PID number "" in "/run/nginx.pid"
下面是解决办法
nginx -s reload is only used to tell a running nginx process to reload its config. After a stop, you don't have a running nginx process to send a signal to. Just run nginx (possibly with a -c /path/to/config/file)
我本机的是用下面的命令
wangkongming@ThinkPad-T410 /etc/nginx $ sudo /usr/sbin/nginx -c /etc/nginx/nginx.conf追问nginx进程仍然在,你说的是整个nginx已经退出了!
追答没仔细看,不好意思