After the Uwsgi and Django configuration connections are successful, start deploying the formal business.
Uwsgi.xml and manage.py in the same directory
Supervisor
Pip Install Supervisor Installation Supervisor
echo_supervisord_conf >/Path supervisord.conf
Supervisord Open
Get to know two commands first:
Supervisord:supervisor server-side section, starting supervisor is running this command
Supervisorctl: Launches the command-line window for supervisor.
Otherwise directly run Supervisorctl error
As follows:
[[email protected] ~]# supervisorctl-c supervisord.conf unix:///tmp/supervisor.sock No such file or need supervisor-c Garquan If the path does not execute in the directory where supevisor.conf is located, an error
Practice proves
Supervisor.conf
Django_uwsgi and manage.py in the same directory
At this point the environment is ready to build.
Nginx+uwsgi+django Configuration 3