Where can I find the error logs of nginx, using fa

2019-01-08 02:58发布

I'm using django with fastcgi + nginx. I want to know where the logs (error) are stored in this case

8条回答
Ridiculous、
2楼-- · 2019-01-08 03:14

errors are stored in nginx log file. you can specify it in root of nginx config file.

error_log  /var/log/nginx/nginx_error.log  warn;
查看更多
迷人小祖宗
3楼-- · 2019-01-08 03:14

Run this command, to check error logs:

tail -f /var/log/nginx/error.log
查看更多
手持菜刀,她持情操
4楼-- · 2019-01-08 03:15
cd /var/log/nginx/
cat error.log
查看更多
叼着烟拽天下
5楼-- · 2019-01-08 03:25

type in terminal sudo cat /var/log/nginx/error.log

查看更多
看我几分像从前
6楼-- · 2019-01-08 03:26

I was looking for a different solution.

Error logs, by default, before any config is set, on my system (x86 Arch), was found in:

/var/log/nginx/error.log
查看更多
我只想做你的唯一
7楼-- · 2019-01-08 03:26

Logs location on Linux servers

Apache – /var/log/httpd/

IIS – C:\inetpub\wwwroot\

Node.js – /var/log/nodejs/

nginx – /var/log/nginx/

Passenger – /var/app/support/logs/

Puma – /var/log/puma/

Python – /opt/python/log/

Tomcat – /var/log/tomcat8
查看更多
登录 后发表回答