作者:我爱你2602912303 | 来源:互联网 | 2023-09-08 10:31
一、安装erlang1、首先安装erlang环境,因为rabbitmq是基于erlang开发的 #添加仓库curl-shttps:packagecloud.ioinstallrep
一、安装erlang
1、首先安装erlang 环境,因为rabbitmq是基于erlang开发的
#添加仓库
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
#安装erlang
dnf install erlang
2、导入密钥
#导入密钥
rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
3、在/etc/yum.repos.d目录下添加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
二、安装rabbitmq
1、安装rabbitmq
yum install rabbitmq-server
2、设置开机自启
systemctl enable rabbitmq-server.service
3.启动rabbitmq-server
systemctl start rabbitmq-server.service
4.查看运行状态
systemctl status rabbitmq-server.service
5.停止
systemctl stop rabbitmq-server.service
三、web管理界面
1.开启rabbitmq web界面
rabbitmq-plugins enable rabbitmq_management
2.创建管理员账号并且设置管理员权限
rabbitmqctl add_user admin 123456
rabbitmqctl set_user_tags admin administrator
四、访问 web UI界面
浏览器输入:http://{IP}:15672
原文链接:https://blog.csdn.net/linfen1520/article/details/108729973