帮助!无法启动uWSGI Empire服务

帮助!无法启动uWSGI Empire服务

我正在使用 nginx 作为我的服务器和 uwsgi 创建一个 django 应用程序。但是,当我输入域名或 IP 地址来访问我的网站时。我收到 502 网关错误错误。所以我决定查看我的日志,看看我是否犯了错误,因为我正在遵循 Digital Ocean 教程。

https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04

Nginx 文件

server {
listen 80;
server_name 173.212.203.105;
error_log /root/logs/error.log;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
    root /root/muzillasite;
}

location / {
    include         uwsgi_params;
    uwsgi_pass      unix:/run/uwsgi/muzillasite.sock;
}

}

实用程序

[uwsgi]
project = muzillasite
base = /root

chdir = %(base)/%(project)
home = %(base)/%(project)

module = %(project).wsgi:application

master = true
processes = 5

socket = %(base)/%(project)/%(project).sock
chmod-socket = 664
vacuum = true

UWSGI会议

description "uWSGI application server in Emperor mode"

start on runlevel [2345]
stop on runlevel [!2345]

setuid root
setgid www-data

exec /usr/local/bin/uwsgi --emperor /etc/uwsgi/sites

错误

uwsgi.service - uWSGI Emperor service
   Loaded: loaded (/etc/systemd/system/uwsgi.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Sun 2017-01-15 22:57:00 CET; 2s ago
  Process: 1127 ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites (code=exited, status=203/EXEC)
  Process: 1122 ExecStartPre=/bin/bash -c mkdir -p /run/uwsgi; chown root:www-data /run/uwsgi (code=exited, status=0/SUCCESS)
 Main PID: 1127 (code=exited, status=203/EXEC)

错误日志

2017/01/15 21:58:51 [crit] 28840#28840: *34 connect() to unix:/run/uwsgi/muzillasite.sock failed (2: No such file or directory) while

相关内容