配置完成nova计算节点(https://docs.openstack.org/zh_CN/install-guide/environment-packages-rdo.html)
[[email protected] ~]# vim /etc/hosts
准备工作
[[email protected] yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[[email protected] yum.repos.d]# yum -y install epel-release
[[email protected] yum.repos.d]# yum install centos-release-openstack-queens
[[email protected] yum.repos.d]# yum upgrade(报错原因网络异常或者慢,多弄几次就好了)
[[email protected] ~]# ntpdate timel.aliyun.com(时间同步报错,关机重启即可)
[[email protected] ~]# yum install python-openstackclient
[[email protected] ~]# yum install openstack-selinux
SQL数据库
安装并配置组件
[[email protected] ~]# yum install mariadb mariadb-server python2-PyMySQL
[[email protected] ~]# vim /etc/my.cnf
过滤记录新修改的数据
[[email protected] ~]# grep -v ‘1’ /etc/my.cnf
[[email protected] ~]# grep ‘2’ /etc/my.cnf
启动数据库服务,并将其配置为开机自启
[[email protected] ~]# systemctl enable mariadb.service
[[email protected] ~]# systemctl start mariadb.service
[[email protected] ~]# mysql_secure_installation
消息队列
安装软件包
[[email protected] ~]# yum install rabbitmq-server
启动消息队列服务并将其配置为随系统启动
[[email protected] ~]# systemctl enable rabbitmq-server.service
[[email protected] ~]# systemctl start rabbitmq-server.service
添加 openstack 用户,密码是openstack
[[email protected] ~]# rabbitmqctl add_user openstack openstack
给openstack
用户配置写和读权限
[[email protected] ~]# rabbitmqctl set_permissions openstack “." ".” “.*”