我使用 NGINX + DJANGO + GUNICORN + SUPERVISOR virtualenv和python3.6。
我在mysite.conf
/etc/supervisor/conf.d
[program:mysite]
command = /home/split/mysite/gunicorn_start.bash ; Command to start app
user = split ; User to run as
stdout_logfile = /home/split/logs/gunicorn_supervisor.log ; Where to write log messages
redirect_stderr = true ; Save stderr in the same log
environment=LANG=en_US.UTF-8,LC_ALL=en_US.UTF-8 ; Set UTF-8 as default encoding
之后我试图重读主管
sudo supervisorctl reread
得到了
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228
帮助please.e