[root@controller ~]# yum install -y rabbitmq-serve
root@controller ~]# systemctl enable rabbitmq-server.service && systemctl start rabbitmq-server.service
[root@controller ~]# rabbitmqctl add_user openstack 123456 #添加 openstack 用户,密码123456
[root@controller ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*" #给openstack用户配置写和读权限[root@controller ~]# rabbitmq-plugins list #查看支持的插件[root@controller ~]# rabbitmq-plugins enable rabbitmq_management #使用此插件实现 web 管理[root@linux-node1 ~]# systemctl restart rabbitmq-server.service[root@controller ~]# netstat -tnlp|grep beamtcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN 997/beam #管理端口 tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 997/beam #server间内部通信口 tcp6 0 0 :::5672 :::* LISTEN 997/beam #client端通信口
访问RabbitMQ,访问地址是http://192.168.1.101:15672/,默认用户名密码都是guest
退出guest用户,测试使用openstack用户登录是否成功