http:通信方式 IP地址:端口号
socket:套接字方式 IP地址:端口号 需要Nginx
http=127.0.0.1:8000 chdir = /home/foobar/myproject/ wsgi-file = myproject/wsgi.py processes = 4 threads = 2 pidfile=uwsgi.pid daemonize=uwsgi.log master=True stats = 127.0.0.1:9191
启动:
uwsgi yourfile.ini / uwsgi --ini uwsgi.ini
查看:
ps aux|grep 'uwsgi'
停止:
uwsgi --stop uwsgi.pid
重启:
uwsgi --reload uwsgi.pid
# 停止所有uWSGI进程
$ sudo pkill -f uwsgi -9