一、各节点配置Openstack源库
yum install centos-release-openstack-liberty -y
升级YUM源库
yum upgrade
安装Openstackclient
yum install python-openstackclient -y
二、安装及配置mariadb数据库
controller:
yum install mariadb mariadb-server MySQL-python -y
创建文件/etc/my.cnf.d/mariadb_openstack.cnf
配置例如以下:
[[email protected] ~]# 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 ".*" ".*" ".*"
时间: 2024-10-11 14:53:23