当前位置:网站首页>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
边栏推荐
- Redis【超强超细 入门教程】
- 80 + guests took the stage, users from more than 10 countries attended the meeting, and 70000 + viewers watched the end of "Gwei 2022 Singapore"
- Rhcsa notes 3
- Have a safe summer vacation, no holidays! Please keep these summer safety tips
- C#启动程序传递参数丢失双引号,如何解决?
- 图的存储结构与方法(二)
- JUC并发编程【详解及演示】
- Error reporting caused by the use of responsebodyadvice interface and its solution
- Is learning next generation modeling a good scene or a good role? Choose the right profession and pay more than half
- MySQL performance tuning
猜你喜欢

deepstream学习笔记(二):gstreamer与deepstream-test1说明

一文了解 NebulaGraph 上的 Spark 项目

Rhcsa notes 7

【攻防世界WEB】难度四星12分进阶题:Cat
![[attack and defense world web] difficulty Samsung 9-point introductory question (end): Fakebook, favorite_ number](/img/f7/e7848a8aa70ed34b166716815617e0.png)
[attack and defense world web] difficulty Samsung 9-point introductory question (end): Fakebook, favorite_ number

How to evaluate the accuracy of stock analysts' prediction?

【攻防世界WEB】难度三星9分入门题(终):fakebook、favorite_number

BOM introduction of BOM series

【2022】【论文笔记】太赫兹量子阱——

图的存储结构与方法(二)
随机推荐
Log framework [detailed learning]
MySQL [knowing and mastering one article is enough]
元胞数组处理
LM393低功耗双电压比较器参数、引脚、应用详解
DB9 serial port and RJ45 serial port
Completion report of communication software development and Application
Modeling at the beginning of learning is very confused, how to learn next generation role modeling?
【攻防世界WEB】难度四星12分进阶题:Cat
[2013] [paper notes] terahertz band nano particle surface enhanced Raman——
[attack and defense world web] difficulty four-star 12 point advanced question: cat
Learn about spark project on nebulagraph
Installation and use of flame graphs
多线程【全面学习 图文精讲】
手写bind、call、apply其实很简单
并非原创的原文路径【如有侵权 请原博主联系删除】
[heavyweight] focusing on the terminal business of securities companies, Borui data released a new generation of observable platform for the core business experience of securities companies' terminals
C#启动程序传递参数丢失双引号,如何解决?
Redis【2022最新面试题】
【重磅】聚焦券商终端业务,博睿数据发布新一代券商终端核心业务体验可观测平台
次世代行业现状如何?90%转行建模师都在学习这套流程