被坑惨了,照以往经验配置Debian10,重启机器以后就没管,后来发现Nginx和PHP竟然都没有启动,网站失联近6个小时。
重启模拟了一下错误过程,发现是vps性能太烂,导致服务没有被启动。(错误代码:15)
- ● nginx.service – A high performance web server and a reverse proxy server
- Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
- Active: failed (Result: timeout) since Wed 2019-11-13 20:36:23 EST; 1min 5s ago
- Docs: man:nginx(8)
- Process: 309 ExECStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=killed, signal=TERM)
- Nov 13 20:34:52 c191109 systemd[1]: Starting A high performance web server and a reverse proxy server…
- Nov 13 20:36:23 c191109 systemd[1]: nginx.service: Start-pre operation timed out. Terminating.
- Nov 13 20:36:23 c191109 systemd[1]: nginx.service: Control process exited, code=killed, status=15/TERM
- Nov 13 20:36:23 c191109 systemd[1]: nginx.service: Failed with result ‘timeout’.
- Nov 13 20:36:23 c191109 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
复制代码
解决方法:
- apt install haveged
复制代码
新疆网友:过几天等母鸡情绪稳定就可以了,
江西网友:不至于这么不堪的