【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

相关推荐
闲人编程42 分钟前
任务监控与错误重试
linux·服务器·网络·celery·任务队列·任务监控·错误重试
REDcker2 小时前
FTP协议原理及应用精解
linux·后端·计算机网络·互联网·ftp·服务端开发
@syh.3 小时前
【linux】进程信号
linux
funnycoffee1233 小时前
Linux查看版本号命令cat /etc/os-release
linux·服务器
xiaoliuliu123454 小时前
Kylin V10 安装 compat-gcc-44-4.4.7-8.el7.x86_64.rpm 详细步骤
linux·运维·服务器
蓝黑20205 小时前
Ubuntu Linux安装搜狗拼音输入法
linux·ubuntu·输入法·pinyin
峰顶听歌的鲸鱼5 小时前
Kubernetes-Pod
linux·运维·云原生·容器·kubernetes·云计算
敲代码的哈吉蜂5 小时前
haproxy——socat热更新工具
linux·运维·服务器
IvanCodes5 小时前
十、Linux Shell脚本:流程控制语句
linux·云计算
盲盒Q5 小时前
《内存之茧》
数据结构·人工智能·ruby