正常安装RabitMQ后,rabbitmq-server启动正常,但rabbitmq_management管理插件启动失败报错:
rabbitmq-plugins enable rabbitmq_management
{:query, :rabbit@web101, {:badrpc, :timeout}}
解决
在hosts文件末尾加上Linux主机号和主机名
方法: vi /etc/hosts
按i进行编辑
主机号 主机名
如: 192.168.1.1 localhost(这里都填自己的)
加好之后 :wq 报存退出
此时就可以查看rabbitmq的插件
启动rabbitmq后,并且也开启了插件还是不能访问页面
可能防火墙没有关闭
解决:关闭Linux防火墙
(1)设置开机启用防火墙:systemctl enable firewalld.service
(2)设置开机禁用防火墙:systemctl disable firewalld.service
(3)启动防火墙:systemctl start firewalld
(4)关闭防火墙:systemctl stop firewalld
(5)检查防火墙状态:systemctl status firewalld