Openstack rabbitMQ install
1, install rabbitMQ
yum -y install rabbitmq-server
2, hostname
hostname qc_controller8.180.ax.com.cn
2, Configure rabbitMQ
# RabbitMQ 啟動失敗,主要原因在于主機名解析,如果主機名帶有"." ,請截取"."之前的字元串資訊
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 qc_controller8.180.ax.com.cn qc_controller8
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 qc_controller8.180.ax.com.cn qc_controller8
192.168.8.180 qc_controller8.180.ax.com.cn qc_controller8
[root@qc_controller8 data]# cat /etc/rabbitmq/rabbitmq.config
% This file managed by Puppet
% Template Path: rabbitmq/templates/rabbitmq.config
[
{rabbit, [
{default_user, <<"guest">>},
{default_pass, <<"guest">>}
]},
{kernel, [
]}
].
% EOF
[root@qc_controller8 data]# cat /etc/rabbitmq/rabbitmq-env.conf
RABBITMQ_NODE_PORT=5672
4,restart service rabbitmq
service rabbitmq-server restart
5,Create user and update password
rabbitmqctl add_user username guest
rabbitmqctl change_password guest guest
5, nova.conf rabbitmq Configure
rpc_backend=nova.openstack.common.rpc.impl_kombu
rabbit_host=192.168.8.180
rabbit_port=5672
rabbit_hosts=192.168.8.180:5672
rabbit_use_ssl=False
rabbit_userid=guest
rabbit_password=guest
rabbit_virtual_host=/
rabbit_ha_queues=False
6,glance-api.conf Configure
#notifier_strategy=qpid
notifier_strategy=default
# Configuration options if sending notifications via rabbitmq (these are
# the defaults)
rabbit_notification_exchange = glance
rabbit_notification_topic = notifications
rabbit_hosts=192.168.8.168:5672
7,reboot system
reboot
本文轉自 swq499809608 51CTO部落格,原文連結:http://blog.51cto.com/swq499809608/1433541