nginx pid No such file or directory解决办法
服务器重启后,有时会需要重新启动nginx,采用
nginx -s reload
提示
nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)
是因为服务器重启时丢了pid文件。
这种情况下可以使用nginx -c,具体如下(nginx.conf位置自行替换)
nginx -c /etc/nginx/nginx.conf
相关推荐
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
HanksWang 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09
mqfcu 2020-11-10
windle 2020-10-29