簡體   English   中英

如何編寫等同於 uwsgi 命令的 uwsgi ini 文件

[英]How to write uwsgi ini file equivalent to a uwsgi command

我正在使用命令在 uWsgi 服務器中測試應用程序,

uwsgi --http :9090 --wsgi-file myapp.py --callable app --processes 4 --threads 2 --stats 127.0.0.1:9191

這將在 9090 端口上啟動應用程序。 我想為此編寫一個.ini文件。 但我堅持--http:9090部分。 ini文件中會怎么寫呢? 到目前為止,我的uwsgi.ini文件看起來像這樣,

[uwsgi]
wsgi-file = myapp.py
callable = app
processes = 4
threads = 2
stats = 127.0.0.1:9191

配置指令和命令行選項由同一解析器管理: https : //uwsgi-docs.readthedocs.org/en/latest/Configuration.html

對於ini格式,您只需要刪除選項前的雙破折號即可。

uwisgi.ini

stats = :1717 --stats-http

文檔: http : //uwsgi-docs.readthedocs.org/en/latest/StatsServer.html

這對我有用:

stats = 0.0.0.0:6000
stats-http = true

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM