在CentOS7上安装RabbitMQ

         

在CentOS7上安装RabbitMQ
1、erlang安装
rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
yum install erlang

rabbitmq安装
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.15/rabbitmq-server-3.6.15-1.el7.noarch.rpm
yum install rabbitmq-server-3.6.15-1.el7.noarch.rpm

rabbitmq启动
systemctl start rabbitmq-server
rabbitmq管理插件安装
rabbitmq-plugins enable rabbitmq_management
rabbitmq加入开机启动
systemctl enable rabbitmq-server.service
rabbitmq启动服务
systemctl start rabbitmq-server.service
rabbitmq加入管理员和管理组和权限设置
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

删除guest用户
rabbitmqctl delete_user guest
开放rabbitmq15672端口
firewall-cmd --zone=public --add-port=15672/tcp --permanent
firewall-cmd --reload

查看rabbitmq安装成功
http://rabbitmq-server:15672/

打赏
         

flying

   

码农

发表评论

电子邮件地址不会被公开。 必填项已用*标注