1.配置防火墙和Selinux
编辑selinux文件Vi /etc/selinux/config
SELINUX=permissive关闭防火墙并设置开机不自起#Systemctl stop firewalld.service
#Systemctl disable firewalld.service
2.安装ntp服务
(1)controller和compute节点#yum -y install ntp
(2)配置controller节点
编辑/etc/ntp.conf文件
添加以下内容server 127.127.1.0
fudge 127.127.1.0 stratum 10启动ntp服务器#service ntpd start
#chkconfig ntpd on
(3)配置compute节点#ntpdate controller
#chkconfig ntpdate on
启用OpenStack库在CentOS中, ``extras``仓库提供用于启用 OpenStack 仓库的RPM包。 CentOS 默认启用``extras``仓库,因此你可以直接安装用于启用OpenStack仓库的包。# yum install centos-release-openstack-mitaka
在RHEL上,下载和安装RDO仓库RPM来启用OpenStack仓库。# yum install https://rdoproject.org/repos/rdo-release.rpm
完成安装
在主机上升级包:# yum upgrade
注解
如果更新了一个新内核,重启主机来使用新内核。
安装 OpenStack 客户端:# yum install python-openstackclient
RHEL 和 CentOS 默认启用了 SELinux . 安装 openstack-selinux 软件包以便自动管理 OpenStack 服务的安全策略:# yum install openstack-selinux
3.安装Mysql数据库服务# yum install mysql mysql-server MySQL-python修改/etc/my.cnf文件[mysqld]中添加
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配置Mysql#mysql_secure_installation按enter确认后设置数据库root密码Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
(2)compute节点#yum -y install MySQL-python1.11安装Mongo数据库服务#yum install -y mongodb-server mongodb编辑/etc/mongod.conf文件
删除bind_ip行
修改smallfiles = true
#systemctl enable mongod.service
#systemctl start mongod.service
4.安装RabbitMQ服务# yum install -y rabbitmq-server
systemctl enable rabbitmq-server.service
systemctl restart rabbitmq-server.service
rabbitmqctl add_user openstack 000000
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
5.安装memcahce#yum install memcached python-memcached
systemctl enable memcached.service
systemctl restart memcached.service
6.安装Mongol数据库
#yum install -y mongodb-server mongodb编辑/etc/mongod.conf文件
删除bind_ip行
修改smallfiles = true
#systemctl enable mongod.service
#systemctl start mongod.service