CentOS 离线安装 Supervisor

安装 setuptools

https://pypi.org/project/setuptools/41.1.0/#files
unzip setuptools-41.1.0.zip
cd setuptools-41.1.0
python setup.py install

安装 meld3

tar xf meld3-2.0.1.tar.gz
cd meld3-2.0.1
python setup.py install

安装 supervisor

tar xf supervisor-4.2.4.tar.gz
cd supervisor-4.2.4
python setup.py install

配置 supervisor

# 创建目录
mkdir /etc/supervisor/conf.d/ -p
mkdir /var/run/supervisor/ -p

# 生成配置文件
echo_supervisord_conf > /etc/supervisor/supervisord.conf

# 修改配置文件
vim /etc/supervisor/supervisord.conf

[unix_http_server]
file=/var/run/supervisor/supervisor.sock
[supervisorctl]
serverurl=unix:///var/run/supervisor/supervisor.sock
[include]
files=conf.d/*.ini

# 创建启动脚本
vim /usr/lib/systemd/system/supervisord.service

[Unit]
Description=Process Monitoring and Control Daemon
After=rc-local.service nss-user-lookup.target

[Service]
Type=forking
ExecStart=/usr/bin/supervisord -c /etc/supervisor/supervisord.conf

[Install]
WantedBy=multi-user.target

# 启动
systemctl daemon-reload
systemctl enable --now supervisord
展开阅读全文

页面更新:2024-05-03

标签:离线   脚本   目录

1 2 3 4 5

上滑加载更多 ↓
推荐阅读:
友情链接:
更多:

本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828  

© CopyRight 2008-2024 All Rights Reserved. Powered By bs178.com 闽ICP备11008920号-3
闽公网安备35020302034844号

Top