- 安装erlang
-
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm
-
启动rabbitmq,并验证启动情况
rabbitmq-server --detached &ps aux |grep rabbitmq
-
以服务的方式启动
service rabbitmq-server start
-
检查端口5672是否打开
/sbin/iptables -I INPUT -p tcp --dport 5672 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart
/etc/init.d/iptables status
-
启用维护插件:
rabbitmq-plugins enable rabbitmq_management
-
重启rabbitmq
service rabbitmq-server restart
-
UI界面 http://ip:15672/ 用户名密码 guest
无法登陆解决办法
vim /etc/rabbitmq/rabbitmq.config
写入信息,并保存
[{rabbit, [{loopback_users, []}]}].
时间: 2024-10-25 04:02:00