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

网络资源 admin 1年前 (2023-03-04) 303次浏览 0个评论

解决方法:

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


原文:https://blog.csdn.net/wxstar8/article/details/79570805


VPS小白 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址