蝙蝠岛资源网 Design By www.hbtsch.com

本篇文章介绍CentOS7.2部署OpenStack,具体如下:

1、系统环境

# uname -r

3.10.0-327.el7.x86_64

# cat /etc/redhat-release

CentOS Linux release 7.2.1511 (Core)

2、服务器部署

CentOS7.2部署OpenStack(一)—环境准备

3、基础环境准备

3.1、配置hosts

# cat /etc/hosts

192.168.56.108 controller

192.168.56.109 compute

3.2、配置时间同步

[root@controller ~]# yum install -y ntp

[root@controller ~]# vim /etc/ntp.conf

15 restrict -6 ::1

16 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

27 restrict 0.centos.pool.ntp.org nomodify notrap noquery

28 restrict 1.centos.pool.ntp.org nomodify notrap noquery

29 restrict 2.centos.pool.ntp.org nomodify notrap noquery

30 restrict 3.centos.pool.ntp.org nomodify notrap noquery

31 server 127.127.1.0

32 fudge 127.127.1.0 stratum 10

[root@controller ~]# systemctl enable ntpd

[root@controller ~]# systemctl start ntpd

在控制节点和计算节点配置定时任务

[root@compute ~]# crontab -l */5 * * * * /usr/sbin/ntpdate 192.168.56.108 >/dev/null 2>&1

3.3、关闭防火墙

# systemctl stop firewalld

3.4、关闭selinux

# SELINUX=disabled /etc/selinux/config //需要重启

3.5、安装基础包

[root@controller ~]# yum install -yhttp://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm

[root@controller ~]# yum install -y centos-release-openstack-liberty

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

3.6、安装mysql

[root@controller ~]# yum install -y mariadb mariadb-server MySQL-python

[root@controller ~]# vim /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

[root@controller ~]# systemctl enable mariadb.service

[root@controller ~]# systemctl start mariadb.service

[root@controller ~]# mysql_secure_installation

3.7、安装rabbitmq

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

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

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

[root@controller ~]# rabbitmqctl add_user openstack openstack

Creating user "openstack" ...

...done.

[root@controller ~]# rabbitmqctl set_permissions openstack '.*' '.*' '.*'

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

...done.

[root@controller ~]# rabbitmqctl set_user_tags openstack administrator

[root@controller ~]# rabbitmq-plugins enable rabbitmq_management

[root@controller ~]# systemctl restart rabbitmq-server.service

 在浏览器中输入http://192.168.56.108:15672,默认账户和密码为guest

登录后将前面创建的openstack用户加入到admin中,结果如下图:

CentOS7.2部署OpenStack(一)—环境准备

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。

标签:
centos7搭建openstack, centos部署openstack,centos7部署openstack

蝙蝠岛资源网 Design By www.hbtsch.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
蝙蝠岛资源网 Design By www.hbtsch.com

评论“CentOS7.2部署OpenStack(一)—环境准备”

暂无CentOS7.2部署OpenStack(一)—环境准备的评论...

稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!

昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。

这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。

而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?