啟動(dòng)
創(chuàng)新互聯(lián)公司成立于2013年,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站制作、成都網(wǎng)站設(shè)計(jì)網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元麗江做網(wǎng)站,已為上家服務(wù),為麗江各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:13518219792
/usr/local/bin/uwsgi --ini uwsgi.ini --pidfile /var/run/uwsgi.pid --log-reopen
ini配置實(shí)例
[uwsgi]
socket = 127.0.0.1:8010
module = manage:cmp_app
pythonpath = /home/work/cdn/python2.7/lib/python2.7/site-packages
chdir = /home/work/project/
wsgi-file = manage.py
master = true
processes = 4
callable = myapp
daemonize = /home/work/project/logs/uwsgi.log
disable-logging = true
pidfile = /var/run/uwsgi.pid
py-autoreload = 1
max-requests = 5000
touch-logreopen = /home/work/project/logs/touchfile
注意
參考資料:
https://www.jianshu.com/p/679dee0a4193 推薦看
https://uwsgi-docs-zh.readthedocs.io/zh_CN/latest/WSGIquickstart.html quickstart