V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
bb2018
V2EX  ›  Python

django nginx uwsgi 生产环境,一直提示: Internal Server Error 查看错误日志: [error] 1739#0: *11 connect() failed (111:

  •  
  •   bb2018 · 2017-08-29 10:42:36 +08:00 · 5989 次点击
    这是一个创建于 2432 天前的主题,其中的信息可能已经有所发展或是发生改变。
    奇怪的是今天早上起来。发现还是提示: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;
    }
    }


    看这错误提示不知是哪里配置的不对?
    另外错误日志不更新了是怎么回事?
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5284 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:19 · PVG 16:19 · LAX 01:19 · JFK 04:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.