Openstack rabbitMQ 安装与配置

本文详细介绍了如何在OpenStack环境中安装配置RabbitMQ消息队列服务,并通过具体步骤展示了如何设置主机名、配置RabbitMQ参数、重启服务、创建用户及更新密码等关键操作。

                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_host=192.168.8.180

    rabbit_port=5672

    rabbit_hosts=192.168.8.168:5672

    rabbit_use_ssl=False

    rabbit_userid=guest

    rabbit_password=guest

    rabbit_virtual_host=/

    rabbit_ha_queues=False


7,reboot system

    reboot

本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1433541

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值