我在哪里可以找到nginx的错误日志,使用FastCGI和Django? [英] Where can I find the error logs of nginx, using FastCGI and Django?
本文介绍了我在哪里可以找到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
这篇关于我在哪里可以找到nginx的错误日志,使用FastCGI和Django?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文