There may be many python programs deployed on a server. Follow the following operations in the root directory of a project to start, restart and stop the project:
After uWSGI is started via xxx.ini, a file named xxx.pid will be generated in the same directory. There is only one line containing the process number of the main process of uWSGI.
start up:
uwsgi --ini xxx.ini
Restart:
uwsgi --reload xxx.pid
stop:
uwsgi --stop xxx.pid