python - 使用uwsgi,如何查看500错误?
PHP中文网
PHP中文网 2017-04-17 17:45:55
0
3
394

现在用nginx代理uwsgi,每次运行uwsgi后,前台出现500错误,uwsgi日志没体现,后台也不报错,如何查找错误?

PHP中文网
PHP中文网

认证0级讲师

reply all(3)
阿神

Configure uwsgi log
[uwsgi]
daemonize = /var/log/uwsgi.log

Configure nginx log
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

洪涛

The log file needs to be configured. I have a configuration here that uses supervisord to manage uwsgi:
stdout_logfile=/opt/log/uwsgi/uwsgi.log

In addition, you need to combine the access and error log of ngingx to see the access situation

Ty80

This depends on the framework, such as webpy. Regardless of whether you see the debug mode or not, exception information will be output, while flask django must enable debug mode to output exception information.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template