在CentOS 7上安装配置守护进程

时间:2026-02-14 06:30:25

1、安装python-setuptools

yum install python-setuptools

遇到提示时, 输入y命令

在CentOS 7上安装配置守护进程

在CentOS 7上安装配置守护进程

2、安装Supervisor

 easy_install supervisor

在CentOS 7上安装配置守护进程

3、创建supervisor配置文件夹

mkdir /etc/supervisor

在CentOS 7上安装配置守护进程

4、配置Supervisor

echo_supervisord_conf > /etc/supervisor/supervisord.conf

在CentOS 7上安装配置守护进程

5、修改supervisord.conf文件

将文件尾部的配置,修改为:

[include]

files = conf.d/*.conf

vi /etc/supervisor/supervisord.conf 

在CentOS 7上安装配置守护进程

在CentOS 7上安装配置守护进程

在CentOS 7上安装配置守护进程

在CentOS 7上安装配置守护进程

在CentOS 7上安装配置守护进程

6、查看supervisord.conf文件

 cat /etc/supervisor/supervisord.conf 

在CentOS 7上安装配置守护进程

在CentOS 7上安装配置守护进程

7、至此已经安装并配置完成

将守护进程启动

supervisord -c /etc/supervisor/supervisord.conf

在CentOS 7上安装配置守护进程

© 2026 阿力知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com