111:连接拒绝错误

目前通过conda venv在Linux服务器上运行烧瓶应用程序。 一切看起来都不错, NginxuWSGI正在运行,但是服务器正在返回错误日志中的上游连接错误。

Linux: http : //imgur.com/a/lmNY2

Nginx的:

 server { listen 80; real_ip_header X-Forwarded-For; set_real_ip_from 127.0.0.1; server_name 127.0.0.1; location / { include uwsgi_params; uwsgi_pass unix:/var/www/html/pricing-service/socket.sock; uwsgi_modifier1 30; } error_page 404 /404.html; location = /404.html { root /usr/share/nginx/html; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } } 

uWSGI:

 [uwsgi] base = /var/www/html/pricing-service app = src.app module = %(app) home = %(base)/venv pythonpath = %(base) socket = /var/www/html/pricing-service/socket.sock chmod-socket = 777 processes = 8 threads = 8 harakiri = 15 callable = app logto = /var/www/html/pricing-service/log/%n.log 

当我跑步

 sudo tail -30 /var/log/nginx/error.log. 

我得到:

错误日志:

 [error]: connect() to unix:/var/www/html/pricing-service/socket.sock failed (111: Connection refused) while connecting to upstream, client: 190.94.xxx.xxx, server: 127.0.0.1, request: "GET / HTTP/1.0", upstream: "uwsgi://unix:/var/www/html/pricing-service/socket.sock:"