您好,登錄后才能下訂單哦!
rabbit mq依賴于erlang,所以需要先安裝erlang,并且rabbit mq不同版本對erlang的版本要求也不一樣。
這里使用rabbit mq提供的erlang的包進行安裝erlang
添加鏡像
vim /etc/yum.repos.d/rabbitmq_erlang.repo
[rabbitmq_erlang]
name=rabbitmq_erlang
baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
[rabbitmq_erlang-source]
name=rabbitmq_erlang-source
baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
安裝yum install erlang
驗證是否安裝成功[xiaoshengyu@localhost ~]$ erl
下載rpmwget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.14/rabbitmq-server-3.7.14-1.el7.noarch.rpm
導入密鑰
rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
安裝yum install rabbitmq-server-3.7.14-1.el7.noarch.rpm
備注:如果這里安裝失敗,根據提示使用wget將依賴包socat下載到本地,然后使用rpm -ivh進行手動安裝即可
設置守護進程,系統啟動時執行systemctl enable rabbitmq-server
啟動systemctl start rabbitmq-server
停止systemctl stop rabbitmq-server
啟用rabbitmq_managementrabbitmq-plugins enable rabbitmq_management
重啟rabbit mq/sbin/service rabbitmq-server restart
查看http服務開啟,端口15672rabbitmqctl status | grep listeners
查看已經存在的用戶rabbitmqctl list_users
新建用戶rabbitmqctl add_user admin admin
授權rabbitmqctl set_user_tags admin administrator
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。