Linux Rabbit的使用

安装RabbitMQ

1.安装Erlang

yum -y install epel-release
yum -y update
yum -y install erlang socat
yum -y install wget

2.安装RabbitMq安装包

wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10-1.el7.noarch.rpm
wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.2/rabbitmq-server-3.7.2-1.el7.noarch.rpm

您随时可以找到最新版RabbitMQ下载页面的链接。
通过运行导入GPG密钥:

rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc

3.运行安装RPM包

rpm -Uvh rabbitmq-server-3.6.10-1.el7.noarch.rpm

4.启动RabbitMQ服务

systemctl start rabbitmq-server   #启动
systemctl enable rabbitmq-server  
systemctl status rabbitmq-server  #查看状态

5.通过运行启用RabbitMQ Web管理控制台(下面这行命令是必须的,否则无法正常打开RabbitMQ)

rabbitmq-plugins enable rabbitmq_management

6.个人设置操作(创建用户,给以用户administrator权限)

rabbitmqctl add_user adminyuan aq2017
rabbitmqctl set_user_tags adminyuan administrator

 

上一篇:【单片机】CH32V103串口IDLE空闲中断


下一篇:nginx的安装配置