OpenStack rabbitmq-server 集群配置
阿新 • • 發佈:2018-07-09
rabbitmq microsoft manage iss 集群 ont 自動 gb2312 text 關於OpenStack自動化安裝課程 請訪問 http://edu.51cto.com/course/14150.html?source=so
yum install rabbitmq-server
rabbitmqctl add_user openstack openstack
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
systemctl restart rabbitmq-server
chown rabbitmq.rabbitmq /var/lib/rabbitmq/.erlang.cookie
chmod 400 /var/lib/rabbitmq/.erlang.cookie
scp /var/lib/rabbitmq/.erlang.cookie root@controller2:/var/lib/rabbitmq/.erlang.cookie
scp /var/lib/rabbitmq/.erlang.cookie root@controller3:/var/lib/rabbitmq/.erlang.cookie
登錄到其他2個節點上進行如下操作
systemctl restart rabbitmq-serever
rabbitmqctl stop_app
rabbitmqctl join_cluster --ram rabbit@controller1
rabbitmqctl start_app
然後在所有的節點開啟管理插件
rabbitmq-plugins enable rabbitmq_management
提示用戶為管理允許登錄
rabbitmqctl set_user_tags openstack administrator
OpenStack rabbitmq-server 集群配置