使用 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:01os: Linux-4.19.91-23.al7.x86_64 #1 SMP Tue Mar 23 18:02:34 CST 2021nodename: noway-5b4df76965-dvb5kmachine: x86_64clock source: unixpcre jit disableddetected number of CPU cores: 4current working directory: /rootdetected binary path: /usr/local/bin/uwsgiuWSGI 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=:8000chdir=/opt/noway/module=noway.wsgiwsgi-file = /opt/noway/wsgi.pyvacuum=Truemaster=Trueworkers=8enable-threads=Truethreads=32memory-report=Truestatic-map=/noway=/usr/local/lib/python3.6/site-packages/drf_yasg/static/