我在哪里可以找到nginx的错误日志,使用FastCGI和Django?
问题描述:
我将 Django 与 FastCGI + nginx 一起使用.这种情况下的日志(错误)存储在哪里?
I'm using Django with FastCGI + nginx. Where are the logs (errors) stored in this case?
答
错误存储在 nginx 日志文件中.可以在nginx配置文件的根目录指定:
Errors are stored in the nginx log file. You can specify it in the root of the nginx configuration file:
error_log /var/log/nginx/nginx_error.log warn;
在使用 Homebrew 的 Mac OS X 上,默认会找到日志文件在以下位置:
On Mac OS X with Homebrew, the log file was found by default at the following location:
/usr/local/var/log/nginx