我注意到我的事例今天没了。
经过快速检查,我注意到nginx无法重新启动,因为它无法重新创建临时目录getStatus
,该目录中将存储用于缓存网站的文件夹:
/tmp/nginx/
为了允许重新启动nginx,我手动创建了systemctl status nginx.service
● 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: exit-code) since Tue 2019-10-22 15:49:20 UTC; 6min ago
Process: 12541 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=e
Oct 22 15:49:20 ubuntu systemd[1]: Starting A high performance web server and a reverse prox
Oct 22 15:49:20 ubuntu nginx[12541]: nginx: [emerg] mkdir() "/tmp/nginx/MY_FOLDER/" fai
Oct 22 15:49:20 ubuntu nginx[12541]: nginx: configuration file /etc/nginx/nginx.conf test fa
Oct 22 15:49:20 ubuntu systemd[1]: nginx.service: Control process exited, code=exited status
Oct 22 15:49:20 ubuntu systemd[1]: Failed to start A high performance web server and a rever
Oct 22 15:49:20 ubuntu systemd[1]: nginx.service: Unit entered failed state.
Oct 22 15:49:20 ubuntu systemd[1]: nginx.service: Failed with result 'exit-code'.
。
我想了解:
查看nginx日志,然后我什么也找不到:
/tmp/nginx/MY_FOLDER/