Yum安装最新版RabbitMQ
1,配置好rabbitMq的最新yum源码包,一个是rabbitmq_erlang.repo,另外一个是
rabbitmq_rabbitmq-server.repo和一个消息延迟队列插件rabbitmq_delayed_message_exchange-3.10.0.ez
cd /etc/yum.repos.d
2,yum直接安装
yum -y install rabbitmq-server
3,安装完毕之后,启动rabbitmq服务
systemctl start rabbitmq-server
#启动服务
rabbitmq-plugins enable rabbitmq_management
#开启插件管理页面打开端口15672
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
#开启延迟插件
rabbitmqctl add_user admin password
#创建admin账号并设置密码password
rabbitmqctl set_user_tags admin administrator
#设置admin账号为管理员权限
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*" #admin账号对vhost有读写权限
rabbitmqctl list_user_permissions admin
# admin权限列表
4,上传延迟插件到插件指定目录
cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.9.6/plugins
重启rabbitmq服务
systemctl restart rabbitmq-server