- 修改yum源–centos6
yum -y install wget
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
- 清除yum缓存
yum clean all >/dev/null
- 重新加载
yum makecache >/dev/null
- 安装supervisor
yum -y install supervisor
- 启动supervisor
/etc/init.d/supervisord start
- 创建子目录
mkdir -p /etc/supervisord.d
- 编辑主配置文件
vim /etc/supervisord.conf
[include]==加入到最后一行==
files = supervisord.d/*.conf
- 重新启动supervisor
/etc/init.d/supervisord restart