openstack centos7 怎么安装

发布网友 发布时间:2022-04-19 14:28

我来回答

1个回答

热心网友 时间:2022-07-14 09:31

三个节点ip信息
controller:192.168.100.10
network:192.168.100.20
compute1:192.168.100.30
修改各节点的/etc/hosts 文件

测试各节点到openstack.org的连通性

controller node
配置NTP服务
yum install -y ntp
vi /etc/ntp.conf 修改文件如下:
server NTP_SERVER iburst #此处未做修改,采用默认
restrict -4 default kod notrap nomodify
restrict -6 default kod notrap nomodify

systemctl enable ntpd.service #开机启动
systemctl start ntpd.service

其他节点同样安装
yum install ntp
修改/etc/ntp.conf文件如下:
server controller iburst

开机启动服务:
systemctl enable ntpd.service
systemctl start ntpd.service

OpenStack packages

Install the yum-plugin-priorities package to enable assignment of relative priorities within repositories:
# yum install -y yum-plugin-priorities

Install the epel-release package to enable the EPEL repository:
# yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

Install the rdo-release-juno package to enable the RDO repository:
# yum install http://rdo.fedorapeople.org/openstack-juno/rdo-release-juno.rpm

Upgrade the packages on your system:
# yum upgrade
# reboot

RHEL and CentOS enable SELinux by default. Install the openstack-selinux package to automatically manage security policies for OpenStack services:
# yum install openstack-selinux
安装如果报错,可通过下面安装:
#yum install http://repos.fedorapeople.org/repos/openstack/openstack-juno/epel-7/openstack-selinux-0.5.19-2.el7ost.noarch.rpm

To install and configure the database server
# yum install mariadb mariadb-server MySQL-python
修改/etc/my.cnf
bind-address = 127.0.0.1
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8

# systemctl enable mariadb.service
# systemctl start mariadb.service

To install the RabbitMQ message broker service
# yum install rabbitmq-server
# systemctl enable rabbitmq-server.service
# systemctl start rabbitmq-server.service
启动服务时出现如下错误:

# rabbitmqctl change_password guest 123456
执行时如果有报错
声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com