关闭防火墙

# systemctl stop firewalld

关闭selinux

# SELINUX=disabled /etc/selinux/config  


安装基础包

 yum install https://rdoproject.org/repos/rdo-release.rpm

 yum install centos-release-openstack-ocata

 yum upgrade

 yum install python-openstackclient

 yum install openstack-selinux

安装mysql

yum install -y mariadb mariadb-server MySQL-python

 vi /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

:wq!


 systemctl enable mariadb.service

 systemctl start mariadb.service

mysql_secure_installation

安装rabbitmq

 yum install -y rabbitmq-server

systemctl enable rabbitmq-server.service

systemctl start rabbitmq-server.service

rabbitmqctl add_user openstack openstack

Creating user "openstack" ...

...done.

rabbitmqctl set_permissions openstack '.*' '.*' '.*'

Setting permissions for user "openstack" in vhost "/"...

...done.

rabbitmqctl  set_user_tags openstack administrator

rabbitmq-plugins enable rabbitmq_management

 systemctl restart rabbitmq-server.service

 

在浏览器中输入http://IP:15672,默认账户和密码为guest(注:如果网页打开不很有可能是防火墙未关闭)