超简单,Centos7 安装 rabbitMQ
首先声明,本人是Linux新手一枚。经历了在阿里云Centos上部署rabbitMQ与重装的痛苦经历,后多方查找终于找到了简单方法。Linux高人来说请跳过本篇文章,新手可以试试。
1、设置Centos的Erlang在线Yum源配置,引用自:http://blog.51cto.com/xvjunjie/2071608
用vi/vim编辑器,编辑/etc/yum.repos.d/rabbitmq-erlang.repo。将你的系统对应段拷入保存。
To use Erlang 20.x on CentOS 7:
# In /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
To use Erlang 20.x on CentOS 6:
# In /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/6
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
To use Erlang 19.x on CentOS 7:
# In /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/19/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
To use Erlang 19.x on CentOS 6:
# In /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/19/el/6
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
2、下载rpm
wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.5/rabbitmq-server-3.7.5-1.el7.noarch.rpm
3、安装rabbitMQ
yum install rabbitmq-server-3.7.5-1.el7.noarch.rpm
4、启动服务
service rabbitmq-server start
5、安装web管理插件(非必需)
rabbitmq-plugins enable rabbitmq_management
6、配置开机启动(非必需)
systemctl enable rabbitmq-server.service
通过上面的几步,我是顺利的安装好了rabbitMQ。原来花费我几个小时的工作,现在几分钟搞定,希望该文章对与我类似的朋友有帮助。
作者:DW039
出处:http://www.cnblogs.com/dw039
本文由DW039原创并发布于博客园,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。