安装setuptools
# yum install python-setuptools
# easy_install supervisor
或者
# wget http://pypi.python.org/packages/source/s/supervisor/supervisor-3.0b1.tar.gz
# tar -zxvf superviosr-3.0b1.tar.gz
# cd superviosr-3.0b1
python setup.py install
创建supervisor配置文件
# echo_superviosrd_conf >/etc/supervisord.conf
# vim /etc/supervisord.conf
[program:hello]
command=balabala
directory=balabala
user=root
autostart=true
autorestart=true
stdout_logfile=/tmp/hello.log
启动supervisor
# supervisord -c /etc/supervisord.conf