配置完成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 「." ".」 「.*」