RabbitMQ
RabbitMQ是一个开源的遵循AMQP协议实现的基于Erlang语言编写,即需要先安装部署Erlang环境再安装RabbitMQ环境。需加注意的是,若不想跟着我的版本号下载安装,可根据两者版本号的对应表进行下载,安装相应版本的Erlang和RabbitMQ
Erlang下载安装
通过wget下载Erlang
wget --content-disposition https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-22.3.4.12-1.el7.x86_64.rpm/download.rpm
安装已下载的rpm包
yum localinstall erlang-22.3.4.12-1.el7.x86_64.rpm
RabbitMQ下载安装
通过wget下载RabbitMQ
wget --content-disposition https://packagecloud.io/rabbitmq/rabbitmq-server/packages/el/7/rabbitmq-server-3.8.13-1.el7.noarch.rpm/download.rpm
运行命令来导入Key
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
yum安装RabbitMQ
yum localinstall rabbitmq-server-3.8.13-1.el7.noarch.rpm
启动并设置开机自启
systemctl start rabbitmq-server
systemctl enable rabbitmq-server
systemctl status rabbitmq-server
看到如下就是安装成功了
RabbitMQ Web界面管理 (非必须)
默认情况下没有安装web端的客户端插件 需要安装才可以
rabbitmq-plugins enable rabbitmq_management
重启服务
systemctl restart rabbitmq-server
关闭防火墙
systemctl stop firewalld
新增用户
rabbitmqctl add_user admin admin
分配操作权限
rabbitmqctl set_user_tags admin administrator
最后就可以访问了 IP:15672