当前位置:网站首页>Rapid establishment of devstack cloud computing platform

Rapid establishment of devstack cloud computing platform

2022-07-23 18:55:00 Full stack programmer webmaster

Hello everyone , I meet you again , I'm your friend, Quan Jun .

This semester, the school opened a course , It's called cloud computing platform building , The book used is OpenStack, This is a popular cloud computing platform , The official explanation for this platform is 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 It is a large-scale calculation that can be controlled through the database 、 Storage 、 Operating system of network pool , All operations are performed through a DashBoard controller , meanwhile , Allow their users to prepare their application sources , Through a network-based example ), English literal translation , In some places, the translation is not good , Understanding, huh ~

Because really OpenStack Multiple servers are required to act as different node roles , It's not very convenient for people who want to experience or understand this platform , Officials provided one DevStack The platform of , It can make OpenStack Run in notebook 、 Even in virtual machines , But I want to run it , Configuration is also enough , In the process of configuration , I often meet Can’t allocate memory The problem of , about DevStack Problems with the operating environment , Official documents do not say memory problems , Baidu's results are not satisfactory , Most people focus on configuration DevStack Part of , Virtual machine configuration is rarely mentioned , Finally over the wall Goggle For a moment , Find at least 4G The above memory allocation , Although it says 2G You can run, too , But the actual test proves ,2G There will also be insufficient memory during installation , Even now 4G Memory quota , Also very tight . therefore , Proposal distribution 4G Above memory !

Okay , Let's talk about installation .

1、 System :Ubuntu 14.04/16.04, Fedora 23/24, CentOS/RHEL 7, The official recommendation 16.04, The system must 64 Of

I use Ubuntu Server 14.04 LTS 64 position

2、 Change the software source

I use Tsinghua software source :https://mirror.tuna.tsinghua.edu.cn/

3、 install python-pip

sudo apt-get install python-pip

4、 Replace pip Source

mkdir ~/.pip

Create... In this directory pip.conf, Add the following .

PIP I use watercress

[global] trusted-host = pypi.douban.com index-url = http://pypi.douban.com/simple

5、 install git

sudo apt-get install git

4、 obtain DevStack Source file

git clone https://git.openstack.org/openstack-dev/devstack

5、 Get into DevStack, newly build loacl.conf file , The contents are as follows

[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

among , The first is password , After setting , database , The default login is to use this password

6、 Get into DevStack/tools Folder , Run the command

sudo ./create-stack-user.sh

7、 To give stack User executable rights

sudo chown -R stack:stack /home/ubuntu/devstack/( my devstack stay home/ubuntu Next , Change here to your own path )

8、 Turn on su Account

sudo passwd

Then set the password

9、 Get into stack Account

su stack

10、 Execution and installation

./stack.sh

Installation depends on the network , I pretended to be fast 6 Hours = =....

Finally, you will get the following interface

It means success !

The browser enters the ip The following interface can be obtained from the address

After landing

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/126721.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207231637072127.html