(1条消息) rpm 安装RabbitMQ 3.7.7版本
也直接百度云链接:https://pan.baidu.com/s/1YJ3y4k_uiC_A0-6qTwNaLQ 密码:qda0
下载好两个RPM文件:一个rabbitmq-server,一个erlang-21.0.9-1.el7.centos.x86_64.rpm
yum install erlang-21.0.9-1.el7.centos.x86_64.rpm
yum install rabbitmq-server-3.7.7-1.el7.noarch.rpm
启动服务:
systemctl start rabbitmq-server
查看状态:
systemctl status rabbitmq-server
启动管理界面:
rabbitmq-plugins enable rabbitmq_management
登录遇到问题:User can only log in via localhost
解决问题:
找到这个文件rabbit.app
/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/ebin/rabbit.app
将:{loopback_users, [<<”guest”>>]},
改为:{loopback_users, []},
原因:rabbitmq从3.3.0开始禁止使用guest/guest权限通过除localhost外的访问
重启服务就OK了
systemctl restart rabbitmq-server.service
user:guest
pwd:guest
赞 (0)