uwsgi+webpy自启动配置脚本

$ pwd
/etc/uwsgi/apps-enabled


$ cat wifidog-authserver.ini

[uwsgi]
socket=127.0.0.1:8088
pidfile=/var/run/uwsgi.pid
daemonize=/var/log/uwsgi.log
master=true
processes = 2
pythonpath=/home/cache/authserver/
module = authserver
#wsgi-file=/home/cache/authserver/authserver.py
log-date = true
buffer-size = 16384
harakiri = 5

chdir=/home/cache/authserver/


使用pythonpath+module和wsgi-file都可以,不过service uwsgi restart服务时,需要手动kill原来的进程

展开阅读全文

没有更多推荐了,返回首页