?1、使用yum安装rabbitMQ服务
yum install rabbitmq-server
?*以下是安装的SSH语句
[root@localhost ~]# yum install rabbitmq-server
已加载插件:fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* epel: hkg.mirror.rackspace.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 rabbitmq-server.noarch.0.3.3.5-34.el7 将被 安装
--> 正在处理依赖关系 erlang-sd_notify,它被软件包 rabbitmq-server-3.3.5-34.el7.noarch 需要
--> 正在检查事务
---> 软件包 erlang-sd_notify.x86_64.0.0.1-1.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
============================================================================================================================================
Package 架构 版本 源 大小
============================================================================================================================================
正在安装:
rabbitmq-server noarch 3.3.5-34.el7 epel 4.0 M
为依赖而安装:
erlang-sd_notify x86_64 0.1-1.el7 epel 9.1 k
事务概要
============================================================================================================================================
安装 1 软件包 (+1 依赖软件包)
总下载量:4.0 M
安装大小:4.8 M
Is this ok [y/d/N]: y
Downloading packages:
erlang-sd_notify-0.1-1.el7.x86 FAILED
http://ftp.iij.ad.jp/pub/linux/Fedora/epel/7/x86_64/Packages/e/erlang-sd_notify-0.1-1.el7.x86_64.rpm: [Errno 14] curl#56 - "Recv failure: Connection reset by peer"
正在尝试其它镜像。
(1/2): rabbitmq-server-3.3.5-34.el7.noarch.rpm | 4.0 MB 00:00:00
(2/2): erlang-sd_notify-0.1-1.el7.x86_64.rpm | 9.1 kB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------
总计 4.1 MB/s | 4.0 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : erlang-sd_notify-0.1-1.el7.x86_64 1/2
正在安装 : rabbitmq-server-3.3.5-34.el7.noarch 2/2
验证中 : erlang-sd_notify-0.1-1.el7.x86_64 1/2
验证中 : rabbitmq-server-3.3.5-34.el7.noarch 2/2
已安装:
rabbitmq-server.noarch 0:3.3.5-34.el7
作为依赖被安装:
erlang-sd_notify.x86_64 0:0.1-1.el7
完毕!
2、启动rabbitMQ服务
service rabbitmq-server start
2.1、可以设置一下开机启动
chkconfig rabbitmq-server on
?3、开启web界面管理工具
rabbitmq-plugins enable rabbitmq_management
?3.1、重启服务
service rabbitmq-server restart
3.2、防火墙开启?15672端口(注意,这个只是web管理页面的端口)
4、开启用户远程访问
启动成功后可以使用 用户名guest 密码guest 登录管理后台
vi /etc/rabbitmq/rabbitmq.config
去掉loopback_user {},前的 百分号
#注意要去掉后面的逗号。
|