使用 uWSGI 报错
错误信息
[uWSGI] getting INI configuration from ./uwsgi.ini
[uwsgi-static] added mapping for /noway => /usr/local/lib/python3.6/site-packages/drf_yasg/static/
*** Starting uWSGI 2.0.19.1 (64bit) on [Wed Jan 19 03:44:50 2022] ***
compiled with version: 10.2.1 20210110 on 19 January 2022 03:42:01
os: Linux-4.19.91-23.al7.x86_64 #1 SMP Tue Mar 23 18:02:34 CST 2021
nodename: noway-5b4df76965-dvb5k
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /root
detected binary path: /usr/local/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /opt/noway/
chdir(): No such file or directory [core/uwsgi.c line 2625]
chdir(): No such file or directory [core/uwsgi.c line 1649]
uwsgi.ini 文件
[uwsgi]
http=:8000
chdir=/opt/noway/
module=noway.wsgi
wsgi-file = /opt/noway/wsgi.py
vacuum=True
master=True
workers=8
enable-threads=True
threads=32
memory-report=True
static-map=/noway=/usr/local/lib/python3.6/site-packages/drf_yasg/static/