首页 > 代码库 > Centos7手动安装OpenStack Mitaka版本--基本环境安装

Centos7手动安装OpenStack Mitaka版本--基本环境安装

Centos7手动安装OpenStack Mitaka版本--第一节:基本环境配置


一台控制节点

controller_ip=10.1.1.160

controller_ip2=192.168.13.147


一台计算节点

compute_ip=10.1.1.162

compute_ip2=192.168.13.144


hosts文件配置

[root@controller ~]# cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

10.1.1.162 compute

10.1.1.160 controller


下面在controller上安装,


设置Openstack Mitaka版本安装源

[root@openstack-3 ~]# yum install centos-release-openstack-mitaka -y

[root@openstack-3 ~]# yum install https://rdoproject.org/repos/rdo-release.rpm -y

[root@openstack-3 ~]# yum update -y

[root@openstack-3 ~]# yum install python-openstackclient -y

[root@openstack-3 ~]# yum install openstack-selinux -y


安装Mariadb数据库

[root@openstack-3 ~]# yum install mariadb mariadb-server python2-PyMySQL -y

[root@openstack-3 ~]# systemctl start mariadb.service

[root@openstack-3 ~]# systemctl enable mariadb.service

[root@openstack-3 ~]# mysql_secure_installation                #初始化数据库


安装RabbitMQ服务

[root@openstack-3 ~]# yum install rabbitmq-server -y

[root@openstack-3 ~]# systemctl enable rabbitmq-server.service

[root@openstack-3 ~]# systemctl start rabbitmq-server.service

[root@openstack-3 ~]# rabbitmqctl add_user openstack openpass  #创建openstack用户,密码openpass

[root@openstack-3 ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"


安装memache

[root@openstack-3 ~]# yum install memcached python-memcached -y

[root@openstack-3 ~]# systemctl enable memcached.service

[root@openstack-3 ~]# systemctl start memcached.service

[root@controller openstack]# ps aux | grep rabbitmq

[root@controller openstack]# ps aux | grep memcached


本文出自 “技术成就梦想” 博客,请务必保留此出处http://andyliu.blog.51cto.com/518879/1844679

Centos7手动安装OpenStack Mitaka版本--基本环境安装