在Centos 7上使用Devstack快速安装Openstack

准备环境:

1)最小安装Centos 7(6G+50G)

2) selinux、iptables关闭

systemctlstopfirewalld.service#停止firewall
systemctldisablefirewalld.service#禁止firewall开机启动
setenforce0

# 使用豆瓣pip源

mkdir-p~/.pip
vi~/.pip/pip.conf
[global]
index-url=http://pypi.douban.com/simple/
[install]
trusted-host=pypi.douban.com

下载并安装EPEL

wgethttp://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm-ivhepel-release-latest-7.noarch.rpm
yumrepolist##检查是否已添加至源列表

为系统安装必要的工具包:

yuminstall-yPython-pip
pipinstall--upgradepip
pipinstall-Uos-testr
yum-yinstallbridge-utils
yum-yinstallnet-tools
yuminstall-ygityum-utils
更新系统:
yumupdate

3)添加一个openstack用户

useradd-d/opt/stack-m-s/bin/bashstack
echo"stackALL=(ALL)NOPASSWD:ALL">>/etc/sudoer

4)su进入新用户并克隆devstack

su-stack
gitclonehttps://git.openstack.org/openstack-dev/devstack

5)安装devstack

cddevstack
./stack.sh

等待2-3分钟,您将看到MySQL数据库,RabbitMQ,服务管理员,服务身份验证和Horizon和Keystone服务的密码提示。

预计剩余的安装步骤需要至少10-30分钟的长时间(具体取决于您的互联网连接。

6)安装完成后就可以访问

dawei

【声明】:淮南站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。