[uwsgi]
#uwsgi启动时,所使用的地址和端口(这个是http协议的)
http=0.0.0.0:12340
#指向网站目录
chdir=./
#python 启动程序文件
wsgi-file=./api_.py
#python 程序内用以启动的application 变量名
callable=app
#处理器数
processes=2
#线程数
threads=4
lazy-apps=false
# buffer-size = 32768
master = true
harakiri = 120 # 超时
# http-timeout= 1200
# uwsgi --ini flask_start.ini
# ps -ef|grep uwsgi
# kill -9 xxxx
# stats=/tmp/uwsgi.status
# 状态
# stats-http=true
# stats:127.0.0.1:9191
# uwsgitop 127.0.0.1:1717
# uwsgi --ini flask_start.ini --stats 127.0.0.1:1717
# 日志
stats=%(chdir)/uwsgi.status
pidfile=%(chdir)/uwsgi.pid
disable-logging=false
daemonize = %(chdir)/uwsgi.log
stdout_logfile = %(chdir)/uwsgi.log
log-date = true
log-strftime = %%Y-%%m-%%d %%H:%%M:%%S
# nohup uwsgi --ini flask_start.ini & # 启动
# uwsgi --stop uwsgi.pid # 停止
# uwsgi --reload uwsgi.pid # 重启
# uwsgitop 127.0.0.1:1717
# ps -ef | grep uwsgi | grep -v grep | awk '{print $2}' | xargs kill
# watch -n 2 --color gpustat --c
03-09
588