Thursday, April 1, 2021

nginx.service: PID file /var/run/nginx.pid not readable (yet?) after start: No such file or dir

需要 Systemd 等待 nginx 创建 PID 文件之后再往下执行

 

1. 在服务配置文件 /usr/lib/systemd/system/nginx.service 添加一行:

ExecStartPost=/bin/sleep 0.1

 

2. 然后执行:systemctl daemon-reload

 

参考:

https://www.programmersought.com/article/95721475597/




 

No comments:

Post a Comment

一些有用的网站

Windows系统安装界面认不到硬盘,加载RST驱动: https://iknow.lenovo.com.cn/detail/419926.html 纯净版Flash: https://gitlab.com/cleanflash/installer/-/releases    ...