OpenStack中的rabbitmq的配置方法
OpenStack中的rabbitmq的配置方法
author:headsen chen 2017-10-11 17:24:58
个人原创,允许转载,转载请注明作者,出处,否则依法追究法律责任
安装: yum install -y rabbitmq-server
开机启动: systemctl enable rabbitmq-server
启动: systemctl start rabbitmq-server (开通5672 和25672端口)
添加openstack用户: rabbitmqctl add_user openstack xxxxxxx
Creating user "openstack" ...
给openstack用户配置读写权限: rabbitmqctl set_permissions openstack ".*" ".*" ".*"
Setting permissions for user "openstack" in vhost "/" ...
查看插件: rabbitmq-plugins list
打开management插件,就可以通过web界面管理rebbitmq
rabbitmq-plugins enable rabbitmq_management (打开后会开通15672端口)
通过web页面查看,用户名和密码都是guest。http ://10.0.0.11:15672
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
在Ubuntu中的部署方法一样:
下载:
apt-get install rabbitmq-server
service rabbitmq-server start
netstat -plnt
update-rc.d rabbitmq-server defaults
更新:里面的openstack用户和guest用户一样: