centos8 yum 安装 rabbitmq
进入/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账号登录