安裝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 //啟動(dòng)
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
注意:出現(xiàn)這種情況,運(yùn)行如下命令
[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
啟動(dòng)成功

圖片.png
復(fù)制一個(gè)新的窗口
安裝插件
[root@bogon ~]#rabbitmq-plugins enable rabbitmq_management
創(chuàng)建用戶
[root@bogon ~]#rabbitmqctl list_users //查看用戶列表
[root@bogon ~]#rabbitmqctl add_user admin admin // 創(chuàng)建用戶
[root@bogon ~]#rabbitmqctl set_user_tags admin administrator // 設(shè)置角色
在瀏覽器中輸入: http://服務(wù)器地址:15672

圖片.png