linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument
Posted wxstar8
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument相关的知识,希望对你有一定的参考价值。
解决方法:
mkdir -p /etc/systemd/system/nginx.service.d
printf "[Service]\\nExecStartPost=/bin/sleep 0.1\\n" > /etc/systemd/system/nginx.service.d/override.conf
然后
systemctl daemon-reload
systemctl restart nginx.service
以上是关于linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument的主要内容,如果未能解决你的问题,请参考以下文章
在centos下启动nginx出现Failed to start nginx.service:unit not found
Linux下重新安装MySql后出现'MySQL Daemon failed to start‘解决方法
Linux教程之:Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)