To start a Django project using uWSGI, run the following command:
uwsgi --ini uwsgi.ini
Copy the code
For details about the uwsgi.ini configuration, see here.
This is what happens when you start up
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Copy the code
To solve
- Creating a User Group
groupadd -g 1001 uwsgigroup
- Create a user
useradd -u 1001 -g uwsgigroup uwsgi
- Modify the
/etc/uwsgi.ini
Specified content:uid = 1001 gid = 1001 Copy the code
Start uWSGi again –ini Uwsgi. ini works fine.