步骤1:安装依赖包
yum -y install python-setuptools
步骤2:下载supervisor软件包
步骤3:解压并安装
tar zxf supervisor-3.3.1.tar.gz
cd supervisor
python setup.py install
步骤4:创建配置文件
mkdir /etc/supervisor
echo_supervisord_conf > /etc/supervisor/supervisord.conf
步骤5:修改配置文件
vim /etc/supervisor/supervisor.conf
在最后一行添加
12 file=/etc/mha/supervisor.sock ; (the path to the socket file)
24 logfile=/etc/mha/supervisord.log ; (main log file;default $CWD/supervisord.log)
28 pidfile=/e