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