在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/
如果发送订阅没有效果
cd /usr/share/doc/rabbitmq-server-3.7.17/
cp rabbitmq.config.example /etc/rabbitmq/
cd /etc/rabbitmq/
mv rabbitmq.config.example rabbitmq.config
修改rabbitmq.config里面disk_free_limit变量为500M,注意取消注释,重启rabbitmq,注意后面逗号影响重新启动

打赏
         

flying

   

码农

发表评论

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