安裝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  //啟動(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
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容