解决 Nginx 重启后不自动启动运行
By 辞峡烟斜
在 Debian 10 中安装 Nginx ,中途没有出现错误,安装成功,也能当时正常启动服务。但是重启后,发现 Nginx 服务未能正常启动,手动启动又是没问题。

根据错误提示,寻求解决方法。网络世界高手常在,有解答,Plex 上的一篇技术支持文件 Nginx/Apache are not running after server reboot on a Plesk server: service start operation timed out. Terminating 给出了答案。
修改 /lib/systemd/system/nginx.service
文件,在[Service]
块中添加TimeoutStartSec=600
相应属性键值即可,可根据自己机器实际更改相应数值。我是改成了240,即4分钟。

重启机器,Nginx 服务正常自动启动。

问题解决,其他类似问题也可以进行相似的修改。