首先supervisord只有python 2.7.*能够安装。
centos7自带python2.7.5
先安装pip:
yum install python-setuptools-devel
#下载pip
wget https://files.pythonhosted.org/packages/d1/05/059c78cd5d740d2299266ffa15514dad6692d4694df571bf168e2cdd98fb/pip-20.1.tar.gz
#安装pip
tar -xf pip-20.1.tar.gz
cd pip-20.1
python setup.py install
pip安装supervisord:
pip install supervisor
生成配置文件:
echo_supervisord_conf > /etc/supervisord.conf
安装rabbitmq:
先安装erlang,百度一下就行
https://packagecloud.io/rabbitmq/erlang?page=3
rabbitmq下载地址:
https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.4
安装:
rpm -Uvh rabbitmq包
#安装rabbitmq公共库密钥:
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
yum install rabbit包