使用FastCGI和Django在哪里可以找到nginx的错误日志? [英] Where can I find the error logs of nginx, using FastCGI and Django?

查看:166
本文介绍了使用FastCGI和Django在哪里可以找到nginx的错误日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将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;

在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

这篇关于使用FastCGI和Django在哪里可以找到nginx的错误日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆