- 安装数据库
[[email protected] ~]# yum install mariadb mariadb-server python2-PyMySQL -y
2.配置数据库
[[email protected] ~]# 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.启动数据库
[[email protected] ~]# systemctl enable mariadb.service [[email protected] ~]# systemctl start mariadb.service
5.初始化数据库
[[email protected] ~]# mysql_secure_installation 数据库密码为123456
6.验证数据库
[[email protected] ~]# mysql -uroot -p123456 能进入数据库表示成功
7.消息队列
openstack使用一个消息队列的服务之间进行协调的操作和状态的信息。消息队列服务通常在控制器节点上运行。OpenStack的支持多种消息队列服务,包括RabbitMQ的, Qpid和ZeroMQ。
8.安装rabbitmq
[[email protected] ~]# yum install rabbitmq-server -y
9.启动rabbitmq服务
[[email protected] ~]# systemctl enable rabbitmq-server.service [[email protected] ~]# systemctl start rabbitmq-server.service
8.创建openstack用户这里使用RABBIT_PASS做openstack用户的密码
[[email protected] ~]# rabbitmqctl add_user openstack RABBIT_PASS Creating user "openstack" ...
9.允许openstack用户的配置,写入和读取的访问
[[email protected] ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*" Setting permissions for user "openstack" in vhost "/" ...
10.安装Memcached
[[email protected] ~]# yum install memcached python-memcached -y
11.启动服务
[[email protected] ~]# systemctl enable memcached.service [[email protected] ~]# systemctl start memcached.service
时间: 2024-12-21 13:39:03