求助:nginx 502错误
makaspacex opened this issue · 1 comments
makaspacex commented
我是在远程VPS上搭建的服务,感觉都挺顺畅的,就是最后出了问题
nginx日志如下:
2017/06/02 01:40:45 [crit] 6362#0: *1 connect() to unix:/tmp/sa_nginx.sock failed (2: No such file or directory) while connecting to upstream, client: 111.207.200.128, server: 162.219.124.230, request: "GET /favicon.ico HTTP/1.1", upstream: "uwsgi://unix:/tmp/sa_nginx.sock:", host: "162.219.124.230", referrer: "http://162.219.124.230/"
但是/tmp/sa_nginx.sock
这个文件是存在的
使用如下命令启动uwsgi:
(shadowsocks) [zhangxinming@localhost shadowsocks-admin]$ uwsgi --ini /home/zhangxinming/flask/shadowsocks-admin/config/uwsgi/shadowsocks-adm.ini
[uWSGI] getting INI configuration from /home/zhangxinming/flask/shadowsocks-admin/config/uwsgi/shadowsocks-admin.ini
结果就一直这样
uwsgi日志如下:
*** Starting uWSGI 2.0.14 (64bit) on [Fri Jun 2 01:43:52 2017] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-11) on 13 January 2017 23:06:53
os: Linux-4.10.4-1.el7.elrepo.x86_64 #1 SMP Sat Mar 18 12:50:10 EDT 2017
nodename: localhost.localdomain
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /home/zhangxinming/flask/shadowsocks-admin
detected binary path: /usr/sbin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 1932
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /tmp/sa_nginx.sock fd 3
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 268544 bytes (262 KB) for 20 cores
*** Operational MODE: threaded ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 6465, cores: 20)
然后访问浏览器就出现了502错误
万分感谢!