CentOS7.1 Liberty云平台之环境准备(2)

一、各节点配置Openstack源库

yum install centos-release-openstack-liberty -y
升级YUM源库

yum upgrade
安装Openstack客户端

yum install python-openstackclient -y

二、安装及配置mariadb数据库

controller:

yum install mariadb mariadb-server MySQL-python -y
创建文件/etc/my.cnf.d/mariadb_openstack.cnf

配置如下:

[root@controller ~]# cat /etc/my.cnf.d/mariadb_openstack.cnf 
[mysqld]
bind-address = 10.0.0.11
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8
启动mariadb服务,并设置开机自启

systemctl start mariadb.service
systemctl enable mariadb.service
初始化数据库

mysql_secure_installation

三、安装及配置RabbitMQ

controller:

yum install rabbitmq-server -y
启动rabbitmq服务,并设置开机自启
systemctl start rabbitmq-server.service
systemctl enable rabbitmq-server.service
添加openstack用户

rabbitmqctl add_user openstack RABBIT_PASS
设置openstack用户权限

rabbitmqctl set_permissions openstack ".*" ".*" ".*"


你可能感兴趣的:(openstack,云平台,liberty)