rpm -Uvh http://www.rabbitmq.com/releases/erlang/erlang-18.1-1.el7.centos.x86_64.rpm
複製代碼
rpm -Uvh http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm
複製代碼
rpm -qa|grep rabbitmq
複製代碼
cp /usr/share/doc/rabbitmq-server-3.5.6/rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
複製代碼
vim /etc/rabbitmq/rabbitmq.config
複製代碼
service rabbitmq-server start
複製代碼
到此服務安裝完成
接下來安裝管理維護插件
html
rabbitmq-plugins enable rabbitmq_management
複製代碼
service rabbitmq-server restart
複製代碼
關閉防火牆(怎麼關閉訪問這個www.cnblogs.com/moxiaoan/p/…)
vim
訪問http://ip地址:15672/,便可進入登陸界面centos
初始用戶名和密碼都是guest中止服務bash
service rabbitmq-server stop
複製代碼
查看狀態ui
rabbitmqctl status
複製代碼
開機啓動centos7
chkconfig rabbitmq-server on
複製代碼
本教程是在虛擬機上安裝的
spa
騰訊雲centos7安裝rabbitmq,有可能報這個錯誤:Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
這個錯誤我找不到緣由,有掘友知道怎麼解決,麻煩告知下,謝謝!插件