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
本文转自 OpenStack2015 博客,原文链接: http://blog.51cto.com/andyliu/1844679 如需转载请自行联系原作者