linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument

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.1n” > /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