python - django nginx uwsgi 提示: Internal Server Error 日志如下..

查看:3216
本文介绍了python - django nginx uwsgi 提示: Internal Server Error 日志如下..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

奇怪的是今天早上起来。发现还是提示:Internal Server Error 但是错误日志一直不更新了,
还是显示昨天晚上的那些。

2017/08/29 01:39:12 [error] 1739#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 111.11.111.111, server: cccc.com, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8006", host: "www.cccc.com" 

我的配配置: uwsgi.ini

# cccc_uwsgi.ini file 
[uwsgi] 
socket = 127.0.0.1:8006 
chdir = /var/wwwroot/html/cccc 
module = cccc.wsgi:application 
env = DJANGO_SETTINGS_MODULE = cccc.settings 
master = true 
processes = 8 
vacuum = true 

nginx.conf

server { 
listen 80; 
server_name www.cccc.com; 
charset UTF-8; 
access_log /var/log/nginx/cccc_access.log; 
error_log /var/log/nginx/cccc_error.log; 

client_max_body_size 75M; 

location / { 
include uwsgi_params; 
uwsgi_pass 127.0.0.1:8006; 
uwsgi_read_timeout 2; 
} 
location /static { 
expires 30d; 
autoindex on; 
add_header Cache-Control private; 
alias /var/wwwroot/html/cccc/static; 
} 
} 

看这错误提示不知是哪里配置的不对?
另外错误日志不更新了是怎么回事?

解决方案

直接访问 127.0.0.1:8006 有响应吗?

这篇关于python - django nginx uwsgi 提示: Internal Server Error 日志如下..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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