当前位置:网站首页>DevStack云计算平台快速搭建
DevStack云计算平台快速搭建
2022-07-23 16:39:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
这学期学校开了一门课,叫云计算平台搭建,用的书是OpenStack,这个是现在比较流行的一个云计算平台,官方对这个平台的解释是OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a datacenter, all managed through a dashboard that gives administrators control while empowering their users to provision resources through a web interface.(OpenStack是一个能够通过数据库控制大型的计算、存储、网络池的操作系统,所有的操作通过一个给予管理员权限的DashBoard控制器,同时,允许他们的用户准备他们的应用源,通过一个基于网络的实例),英文直译,有的地方翻译的不好,谅解哈~
由于真正OpenStack需要多台服务器充当不同的节点角色,对于想体验或者了解这个平台的人来说就不是很方便了,官方提供了一个DevStack的平台,可以让OpenStack运行在笔记本、甚至是虚拟机里,不过想运行它,配置也得够,自己在配置得过程中,经常遇到Can’t allocate memory的问题,对于DevStack运行环境的问题,官方文档没说内存问题,百度的结果也不尽如人意,大部分人都是重点讲配置DevStack的部分,很少提及虚拟机的配置,最后翻墙Goggle了一下,发现至少要4G以上的内存分配,虽然上面说2G也能跑,不过实际测试证明,2G在安装的时候也会出现内存不够,就算我现在4G内存的配额,也很吃紧了。所以,建议分配4G以上内存!
好了,下面来说说安装吧。
1、系统:Ubuntu 14.04/16.04, Fedora 23/24, CentOS/RHEL 7,官方推荐16.04,系统一定要64的
我是用Ubuntu Server 14.04 LTS 64位
2、换软件源
软件源我是用清华的:https://mirror.tuna.tsinghua.edu.cn/
3、安装python-pip
sudo apt-get install python-pip
4、更换pip源
mkdir ~/.pip
在该目录下创建pip.conf,添加如下内容。
PIP源我是用豆瓣
[global] trusted-host = pypi.douban.com index-url = http://pypi.douban.com/simple
5、安装git
sudo apt-get install git
4、获取DevStack源文件
git clone https://git.openstack.org/openstack-dev/devstack5、进入DevStack,新建loacl.conf文件,内容如下
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD其中,第一个为密码,设置后,数据库,默认登陆都是用此密码
6、进入DevStack/tools文件夹,运行一下命令
sudo ./create-stack-user.sh
7、给予stack用户可执行权限
sudo chown -R stack:stack /home/ubuntu/devstack/(我的devstack在home/ubuntu下,这里换成你自己的路径)
8、开启su账户
sudo passwd
然后设置密码
9、进入stack账户
su stack
10、执行安装
./stack.sh
安装视网络情况而定,我是装了快6个小时= =。。。。
最后会得到如下界面
表示成功!
浏览器输入它提供的ip地址可得到如下界面
登陆后
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/126721.html原文链接:https://javaforall.cn
边栏推荐
- How to replace the double quotation marks of Times New Roman in word with the double quotation marks in Tahoma
- 程序员最想干的三件事 |漫画
- LeetCode 剑指 Offer II 115.重建序列:图解 - 拓扑排序
- 多线程【全面学习 图文精讲】
- 图的存储结构与方法(二)
- How does the NiO mechanism of jetty server cause out of heap memory overflow
- Redis【2022最新面试题】
- 零基础要学建模该从何开始?如何才能学好游戏建模?
- 我的创作纪念日
- Rhcsa notes 7
猜你喜欢

opencv(13):cv2.findContours、cv::findContours简要介绍及opencv各版本cv2.findContours函数说明

Use three JS realize the 'ice cream' earth, and let the earth cool for a summer

Have a safe summer vacation, no holidays! Please keep these summer safety tips

Foundation of class
![[2013] [paper notes] terahertz band nano particle surface enhanced Raman——](/img/09/af80a744573ce53a0056e7124675a8.png)
[2013] [paper notes] terahertz band nano particle surface enhanced Raman——

使用kail破解wifi密码

零基础要学建模该从何开始?如何才能学好游戏建模?

Deepstream learning notes (II): description of GStreamer and deepstream-test1

【游戏建模模型制作全流程】ZBrush武器模型制作:弩

Rhcsa note 4
随机推荐
[2020] [paper notes] Based on Rydberg atom——
BOM introduction of BOM series
[sharing 3D modeling and production skills] how ZBrush turns pictures into relief models
建模刚开始学习很迷茫,次世代角色建模该怎么学习?
MySQL [knowing and mastering one article is enough]
398. Random number index hash table method
Gradle [graphic installation and use demonstration]
Jumpserver administrator account is locked
【2020】【论文笔记】太赫兹新型探测——太赫兹特性介绍、各种太赫兹探测器
Building virtual private network based on softther
80 + guests took the stage, users from more than 10 countries attended the meeting, and 70000 + viewers watched the end of "Gwei 2022 Singapore"
C#启动程序传递参数丢失双引号,如何解决?
【2020】【论文笔记】基于Rydberg原子的——
80+嘉宾登台,10余国用户参会,7万+观众收看,「GWEI 2022-新加坡」落幕
手写bind、call、apply其实很简单
使用kail破解wifi密码
Error reporting caused by the use of responsebodyadvice interface and its solution
What happened behind kubectl's creation of pod?
[2022] [paper notes] terahertz quantum well——
Problems and methods of creating multiple projects under one solution in VS2010