centos7如何安装rabbitmq

rabbitmq是基于erlang语言写的,所以安装rabbitmq之前先要安装一下erlang

1.安装erlang

//下载erlang rpm包
wget --content-disposition https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-23.3.4.5-1.el7.x86_64.rpm/download.rpm
//安装erlang
yum install erlang-23.3.4.5-1.el7.x86_64.rpm -y

2.安装rabbitmq

//下载rabbitmq rpm包
wget --content-disposition https://packagecloud.io/rabbitmq/rabbitmq-server/packages/el/7/rabbitmq-server-3.9.1-1.el7.noarch.rpm/download.rpm
//安装rabbitmq
yum install rabbitmq-server-3.9.1-1.el7.noarch.rpm -y

这样就安装好了rabbitmq

3.启动rabbitmq

systemctl start rabbitmq-server

4.设置rabbitmq开机启动

systemctl enable rabbitmq-server

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: