supervisor 启动与部署

创建日期: 2023-10-17 12:25 | 作者: 风波 | 浏览次数: 13 | 分类: Python

来源:http://supervisord.org/installing.html

1. 安装 supervisor

pip install supervisor -i https://mirrors.aliyun.com/pypi/simple/  --trusted-host mirrors.aliyun.com

2. 生成配置文件

echo_supervisord_conf > /etc/supervisord.conf

按照需求修改配置,一般只修改日志位置,以及最后两行的 include 即可。

3. 启动

supervisord -c /etc/supervisord.conf
13 浏览
8 爬虫
0 评论