Linux系统安装配置rabbitmq

本文安装RabbitMQ

 

1.安装相关依赖

yum update
yum install epel-release
yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git wget wxBase.x86_64

 

2.安装ErLang

因为RabbitMQ服务端代码是使用并发式语言Erlang编写的。

wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum update
yum install erlang

ps:rpm -Uvh     升级(或安装)

 

3.检查是否安装成功

输入erl

 

4.安装 RabbitMQ

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.9/rabbitmq-server-3.7.9-1.el7.noarch.rpm
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
yum install rabbitmq-server-3.7.9-1.el7.noarch.rpm

ps:rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc 用来导入signing-key


5.启动服务

systemctl start rabbitmq-server

 

6.添加管理员账号

rabbitmqctl add_user admin 1230


7.分配用户标签

rabbitmqctl set_user_tags admin administrator


8.创建和赋角色完成后查看并确认

rabbitmqctl list_users

Linux系统安装配置rabbitmq_第1张图片 

 

9.浏览器测试

ip地址:15672

输入配置的用户账户密码:

Linux系统安装配置rabbitmq_第2张图片

登录完成界面如下:

Linux系统安装配置rabbitmq_第3张图片

至此,大功告成~

 

你可能感兴趣的:(Linux)