推荐学习书目
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 · Aug 29, 2017 · 6408 views
    This topic created in 3267 days ago, the information mentioned may be changed or developed.
    奇怪的是今天早上起来。发现还是提示: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;
    }
    }


    看这错误提示不知是哪里配置的不对?
    另外错误日志不更新了是怎么回事?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2835 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:09 · PVG 21:09 · LAX 06:09 · JFK 09:09
    ♥ Do have faith in what you're doing.