安装RabbitMQ

安装RabbitMQ

下载需要的两个包
shell 复制代码
# 这直接就可以安装了,下面 '上传对应的rmp包' 操作
[root@rabbitmq-1 ~]# curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
[root@rabbitmq-1 ~]# yum install erlang-21.3.8.21-1.el7.x86_64
# rabbitmq的包暂时找不到
上传对应的rpm包

RabbitMQ使用Relang语言开发的,所以安装RabbitMQ也需要安装对应的开发语言

上面是需要的安装包

安装对应的rpm包
shell 复制代码
[root@localhost ~]# yum install -y erlang-21.3.8.21-1.el7.x86_64.rpm
[root@localhost ~]# yum install -y rabbitmq-server-3.7.10-1.el7.noarch.rpm 
启动
shell 复制代码
[root@localhost ~]# systemctl daemon-reload
[root@localhost ~]# systemctl start rabbitmq-server
[root@localhost ~]# systemctl enable rabbitmq-server
启动方式二:
[root@localhost ~]# /sbin/service rabbitmq-server status  ---查看状态
[root@localhost ~]# /sbin/service rabbitmq-server start   ---启动
创建用户并且授权
shell 复制代码
[root@localhost ~]# rabbitmqctl add_user root 1
Adding user "root" ...
[root@localhost ~]# rabbitmqctl set_user_tags root administrator
Setting tags for user "root" to [administrator] ...
[root@localhost ~]# rabbitmqctl list_users
Listing users ...
user    tags
guest   [administrator]
root    [administrator]
[root@localhost ~]# rabbitmqctl set_permissions -p "/" root ".*" ".*" ".*"
Setting permissions for user "root" in vhost "/" ...
开启用户远程登录
shell 复制代码
[root@localhost ~]# cd /usr/share/doc/rabbitmq-server-3.7.10/
[root@localhost rabbitmq-server-3.7.10]# cp rabbitmq.config.example /etc/rabbitmq
[root@localhost rabbitmq-server-3.7.10]# cd /etc/rabbitmq/
[root@localhost rabbitmq]# ls
enabled_plugins  rabbitmq.config.example
[root@localhost rabbitmq]# mv rabbitmq.config.example  rabbitmq.config
[root@localhost rabbitmq]# vim rabbitmq.config 

修改下面配置文件的内容 第349行

shell 复制代码
# 开启rabbitmq的web访问界面:
[root@localhost ~]# rabbitmq-plugins enable rabbitmq_management
输入对应的ip即可以登录
相关推荐
欧云服务器1 天前
怎么让脚本命令可以同时在centos、debian、ubuntu执行?
ubuntu·centos·debian
xiaoliuliu123451 天前
CentOS 7 安装 gcc-4.8.5-44.el7.x86_64.rpm 详细步骤(含依赖解决)
linux·运维·centos
让我上个超影吧1 天前
消息队列——RabbitMQ(高级)
java·rabbitmq
塔中妖1 天前
Windows 安装 RabbitMQ 详细教程(含 Erlang 环境配置)
windows·rabbitmq·erlang
Ronin3052 天前
信道管理模块和异步线程模块
开发语言·c++·rabbitmq·异步线程·信道管理
txzz88882 天前
CentOS-Stream-10 Secure Shell服务器sshd_config配置文件
linux·centos·sshd_config·ssh配置
txzz88882 天前
CentOS-Stream-10 Secure Shell服务器
linux·centos·ssh·secure shell·ssh服务器
文静小土豆2 天前
CentOS 7 OpenSSH 10.2p1 升级全攻略(含离线安装与回退方案)
linux·运维·centos·ssh
xianyudx2 天前
Linux 服务器 DNS 配置指南 (CentOS 7 / 麒麟 V10)
linux·服务器·centos
文静小土豆2 天前
CentOS 7 升级 OpenSSL 3.5.4 详细指南
linux·运维·centos·ssl