小编Fly*_*eem的帖子

uWSGI nginx错误:连接到上游时connect()失败(111:拒绝连接)

我在nginx(http://52.xx.xx.xx/)访问我的IP时遇到502网关错误,日志只是这样说:

2015/09/18 13:03:37 [错误] 32636#0:*1 connect()失败(111:连接被拒绝)连接到上游,客户端:xx.xx.xx.xx,服务器:xx.xx. xx.xx,请求:"GET/HTTP/1.1",上游:"uwsgi://127.0.0.1:8000",主机:"xx.xx.xx.xx"

我的nginx.conf文件

# the upstream component nginx needs to connect to
upstream django {
    # server unix:///path/to/your/mysite/mysite.sock; # for a file socket
    server 127.0.0.1:8000; # for a web port socket (we'll use this first)
}

# configuration of the server
server {
    # the port your site will be served on
    listen      80;
    # the domain name it will serve for
    server_name xx.xx.xx.xx; # substitute your machine's IP address or FQDN
    charset …
Run Code Online (Sandbox Code Playgroud)

nginx uwsgi

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

nginx ×1

uwsgi ×1