安装数据库
[root@controller ~]# yum install mariadb mariadb-server python2-PyMySQL -y
2.配置数据库
[root@controller ~]# vim /etc/my.cnf.d/openstack.cnf[mysqld]bind-address = 192.168.23.98 #本服务器的ipdefault-storage-engine = innodbinnodb_file_per_tablemax_connections = 4096collation-server = utf8_general_cicharacter-set-server = utf8
4.启动数据库
[root@controller ~]# systemctl enable mariadb.service[root@controller ~]# systemctl start mariadb.service
5.初始化数据库
[root@controller ~]# mysql_secure_installation数据库密码为123456
6.验证数据库
[root@controller ~]# mysql -uroot -p123456 能进入数据库表示成功
7.消息队列
openstack使用一个的服务之间进行协调的操作和状态的信息。消息队列服务通常在控制器节点上运行。OpenStack的支持多种消息队列服务,包括, 和。
8.安装rabbitmq
[root@controller ~]# yum install rabbitmq-server -y
9.启动rabbitmq服务
[root@controller ~]# systemctl enable rabbitmq-server.service[root@controller ~]# systemctl start rabbitmq-server.service
8.创建openstack用户这里使用RABBIT_PASS做openstack用户的密码
[root@controller ~]# rabbitmqctl add_user openstack RABBIT_PASSCreating user "openstack" ...
9.允许openstack用户的配置,写入和读取的访问
[root@controller ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"Setting permissions for user "openstack" in vhost "/" ...
10.安装Memcached
[root@controller ~]# yum install memcached python-memcached -y
11.启动服务
[root@controller ~]# systemctl enable memcached.service[root@controller ~]# systemctl start memcached.service