安装RabbitMQ(一)

安装Erlang (https://packages.erlang-solutions.com/erlang/)
添加EPEL源

[root@bogon ~]#cd /usr/local
[root@bogon local]#rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

安装

[root@bogon local]#wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
[root@bogon local]#rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
[root@bogon local]#rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
[root@bogon local]#sudo yum install erlang 或者sudo yum install esl-erlang

下载安装rabbitmq

下载安装rabbitmq
[root@bogon local]#wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10-1.el7.noarch.rpm
[root@bogon local]#yum -y install rabbitmq-server-3.6.10-1.el7.noarch.rpm

[root@bogon local]#rabbitmq-server start  //启动
Transaction check error:
file /usr/bin/epmd from install of erlang-erts-20.0-1.el7.centos.x86_64 conflicts with file from package esl-erlang-20.0-1.x86_64
file /usr/bin/erl from install of erlang-erts-20.0-1.el7.centos.x86_64 conflicts with file from package esl-erlang-20.0-1.x86_64
file /usr/bin/erlc from install of erlang-erts-20.0-1.el7.centos.x86_64 conflicts with file from package esl-erlang-20.0-1.x86_64
file /usr/bin/escript from install of erlang-erts-20.0-1.el7.centos.x86_64 conflicts with file from package esl-erlang-20.0-1.x86_64
file /usr/bin/run_erl from install of erlang-erts-20.0-1.el7.centos.x86_64 conflicts with file from package esl-erlang-20.0-1.x86_64
file /usr/bin/to_erl from install of erlang-erts-20.0-1.el7.centos.x86_64 conflicts with file from package esl-erlang-20.0-1.x86_64
file /usr/bin/dialyzer from install of erlang-dialyzer-20.0-1.el7.centos.x86_64 conflicts with file from package esl-erlang-20.0-1.x86_64
file /usr/bin/ct_run from install of erlang-common_test-20.0-1.el7.centos.x86_64 conflicts with file from package esl-erlang-20.0-1.x86_64
注意:出现这种情况,运行如下命令
[root@bogon local]#yum remove esl-erlang-20.0-1.x86_64 esl-erlang-20.0-1.x86_64 esl-erlang-20.0-1.x86_64 esl-erlang-20.0-1.x86_64 esl-erlang-20.0-1.x86_64 esl-erlang-20.0-1.x86_64 esl-erlang-20.0-1.x86_64 esl-erlang-20.0-1.x86_64

启动成功

图片.png

复制一个新的窗口
安装插件

[root@bogon ~]#rabbitmq-plugins enable rabbitmq_management

创建用户

[root@bogon ~]#rabbitmqctl  list_users    //查看用户列表

[root@bogon ~]#rabbitmqctl  add_user  admin admin  // 创建用户

[root@bogon ~]#rabbitmqctl  set_user_tags  admin administrator   //  设置角色

在浏览器中输入: http://服务器地址:15672


图片.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容