@
coffeSlider Nginx 没有错误日志 🤔🤔🤔
`
access.log
223.72.97.144 - - [11/Apr/2018:11:06:17 +0800] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5"
223.72.97.144 - - [11/Apr/2018:11:06:21 +0800] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5"
^[[A^C
(venv) ubuntu@VM-49-116-ubuntu:/var/log/nginx$ tail -10f error.log
^C
(venv) ubuntu@VM-49-116-ubuntu:/var/log/nginx$ ll error.log
-rw-r----- 1 www-data adm 0 Apr 10 01:45 error.log
`
解决了, 通过 sudo nginx -t 测试 Nginx:
Nginx 的 error.log 无权限, /var/nginx/pid 无权限
都给了个 664 权限,
不知道为什么, Nginx 的 access.log 可以, error.log 却没权限