進入/etc/yum.repos.d/ 文件夾創建rabbitmq-erlang.repo 文件內容如下[rabbitmq-erlang] name=rabbitmq-erlangbaseurl=https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/21 ...
進入/etc/yum.repos.d/ 文件夾
創建rabbitmq-erlang.repo 文件
內容如下
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/21/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
創建rabbitmq.repo 文件
內容如下
[bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/8/
gpgcheck=0
repo_gpgcheck=0
enabled=1
安裝命令
yum install rabbitmq-server
rabbitmq相關命令
開啟
service rabbitmq-server start
關閉
service rabbitmq-server stop
查看狀態
service rabbitmq-server status
重啟
service rabbitmq-server restart
啟用插件頁面管理
rabbitmq-plugins enable rabbitmq_management
創建用戶
rabbitmqctl add_user admin mypassword
賦予許可權
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
瀏覽器訪問http://機器IP:15672打開管理界面,使用上一步配置好的admin賬號登錄