Start, restart and stop of a process of uWSGI

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


 

Guess you like

Origin blog.csdn.net/weixin_38664232/article/details/107321780