uwsgi常见配置

 

[uwsgi]
master=true
chdir=/home/op/gameserver_data # 项目目录地址
virtualenv=/home/op/gameserver_data/venv/ # 虚拟环境地址
wsgi-file=goldfinger.py
plugins=python
manage-script-name=true
mount=/=goldfinger.py
gevent=10
harakiri=5  # 设置超时时间
gevent-monkey-patch=true
lazy-apps=true
callable=app
socket=127.0.0.1:6062 #和nginx通信
processes=1 # 进程数 和cpu核心数保持一致
buffer-size=32768
stats=127.0.0.1:6061 #uwsgi top用的

 

相关文章:

  • 2021-12-19
  • 2022-01-08
  • 2021-07-04
  • 2021-08-17
  • 2021-08-02
  • 2021-10-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2022-01-05
  • 2021-11-30
相关资源
相似解决方案