並行處理框架Celery的Web監控管理服務-Flower


安裝和使用

使用pip安裝Flower:

$ pip install flower
或 pip install flower -U -i https://pypi.tuna.tsinghua.edu.cn/simple #如果沒有pip,使用sudo apt-get install python-pip進行安裝。

運行 flower命令啟動web-server:

$ celery -A proj flower

缺省的端口是http://localhost:5555, 可以使用–port參數改變,如下所示:

$ celery -A proj flower --port=5555

可以通過–broker參數指定Broker的URL地址:

$ celery flower --broker=amqp://guest:guest@localhost:5672// or$ celery flower --broker=redis://guest:guest@localhost:6379/0

然后,通過瀏覽器訪問flower服務器:

$ open http://localhost:5555


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM