使用gevent启动bottle web框架
生活随笔
收集整理的這篇文章主要介紹了
使用gevent启动bottle web框架
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
在gevent 1.3中gevent.wsgi已被棄用,所以使用1.2.2版本的gevent
pip?install??gevent==1.2.2在文件最前添加
from?gevent?import?monkey; monkey.patch_all()啟動語句
bottle.run(server='gevent',?host='0.0.0.0',?port=5000) #?也可以考慮使用gunicorn啟動 #?pip?install?gunicorn #?bottle.run(server='gunicorn',?host='0.0.0.0',?port=5000)轉(zhuǎn)載于:https://blog.51cto.com/wenguonideshou/2160840
總結
以上是生活随笔為你收集整理的使用gevent启动bottle web框架的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP全栈开发(八):CSS Ⅹ 导航栏
- 下一篇: 35. 通过实现一个序列加密的功能,熟悉