【Linux】Centos7安装RabbitMQ

【Linux】Centos7安装RabbitMQ

下载

从 rabbitmq 的 GitHub 仓库下载

https://github.com/rabbitmq/rabbitmq-server/releases

rabbitmq 是 erlang 语言编写的,需要先安装 erlang

https://github.com/rabbitmq/erlang-rpm/releases

安装

使用rz命令上传 erlang 和 rabbitmq 的 rpm

bash 复制代码
[root@localhost /]# yum -y install socat
[root@localhost /]#  rpm -ivh erlang-26.2.5-1.el7.x86_64.rpm
[root@localhost /]# rpm -ivh rabbitmq-server-3.13.2-1.el8.noarch.rpm

启动

bash 复制代码
[root@localhost /]# systemctl start rabbitmq-server
[root@localhost /]# systemctl status rabbitmq-server

开启 wbe 插件,以及分配用户权限

bash 复制代码
[root@localhost /]#  rabbitmq-plugins enable rabbitmq_management
[root@localhost /]# rabbitmqctl add_user admin admin
[root@localhost /]#  rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
[root@localhost /]# rabbitmqctl set_user_tags admin administrator

校验

主机浏览器打开 http://192.168.181.136:15672/,输入账号 admin 密码 admin

相关推荐
mCell2 小时前
从删库到跑路?这50个Linux命令能保你职业生涯
linux·windows·macos
杰克逊的日记2 小时前
GPU运维常见问题处理
linux·运维·gpu
誰能久伴不乏3 小时前
Linux系统调用概述与实现:深入浅出的解析
linux·运维·服务器
程序员学习随笔4 小时前
Linux进程深度解析(2):fork/exec写时拷贝性能优化与exit资源回收机制(进程创建和销毁)
linux·运维·服务器
mmoyula4 小时前
【RK3568 PWM 子系统(SG90)驱动开发详解】
android·linux·驱动开发
-SGlow-4 小时前
MySQL相关概念和易错知识点(2)(表结构的操作、数据类型、约束)
linux·运维·服务器·数据库·mysql
代码改变世界ctw5 小时前
Linux内核设计与实现 - 第14章 块I/O层
linux·运维·服务器
van叶~7 小时前
Linux网络-------1.socket编程基础---(TCP-socket)
linux·网络·tcp/ip
风吹落叶花飘荡7 小时前
Ubuntu系统 系统盘和数据盘扩容具体操作
linux·运维·ubuntu
zoulingzhi_yjs7 小时前
haproxy配置详解
linux·云原生