系统相关
首页 > 系统相关> > centos8 yum 安装 rabbitmq

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账号登录

 

标签:service,rabbitmq,server,bintray,gpgcheck,yum,erlang,centos8
来源: https://www.cnblogs.com/shiyuelp/p/11910700.html