centos6安装supervisor

  1. 修改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
  1. 清除yum缓存
 yum clean all >/dev/null
  1. 重新加载
yum makecache >/dev/null
  1. 安装supervisor
yum -y install supervisor
  1. 启动supervisor
/etc/init.d/supervisord start
  1. 创建子目录
mkdir -p /etc/supervisord.d
  1. 编辑主配置文件
vim /etc/supervisord.conf
[include]==加入到最后一行==
files = supervisord.d/*.conf
  1. 重新启动supervisor
/etc/init.d/supervisord restart