阿里雲linux centos系統安裝rabbitMQ
阿新 • • 發佈:2018-11-25
需要先安裝EPEL
yum install epel-release
yum install yum-priorities
cd /opt
wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
修改/etc/yum.repos.d/erlang_solutions.repo
[erlang-solutions]
name=Centos releasever—releasever−basearch - Erlang Solutions
baseurl=baseurl=https://mirrors4.tuna.tsinghua.edu.cn/erlang-solutions/centos/7/
gpgcheck=1
gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1
yum install erlang
上傳rabbitmq-server-3.6.1-1.noarch.rpm(rabbitMQ安裝包,需要的可留言留下郵箱或者新增qq759646095)
到/usr/local/src/rabbitmq
rpm -ivh rabbitmq-server-3.6.1-1.noarch.rpm
cd /usr/sbin
[[email protected] sbin]# rabbitmq-plugins enable rabbitmq_management
cd /usr/sbin
service rabbitmq-server start
在瀏覽器上輸入http://伺服器ip:15672
執行命令建立使用者
rabbitmqctl add_user biliadmin biliadmin
設定下面命令設定biliadmin是超級管理員
rabbitmqctl set_user_tags biliadmin administrator
現在就能看到登入頁面了