PaaS平台– Google App Engine的开源实现AppScale环境搭建
来源:互联网 发布:ubuntu wine命令 安装 编辑:程序博客网 时间:2024/05/29 19:58
搭建环境介绍:
- 硬件平台:HP Z800 工作站 内存:24GB 硬盘:1TB
- 虚拟化环境:XenServer 6.2.0
- VM1:Ubuntu 12.04 amd64 server | IP:192.168.137.50
- VM2:Ubuntu 12.04 amd64 server | IP:192.168.137.51
- VM3:Ubuntu 12.04 amd64 server | IP:192.168.137.52
1、从Git安装Appscale
在Xen上安装好Ubuntu 12.04 server版本后,使用root用户登录,然后运行:
wget -O – http://bootstrap.appscale.com | sh
然后会从git clone到本地,进行自动化安装。该命令会执行下面的操作:
安装git
apt-get install -y git-core
构建appscale
cd /root
git clone git://github.com/AppScale/appscale.git
cd appscale/debian
bash appscale_build.sh
构建appscale-tools
cd /root
git clone git://github.com/AppScale/appscale-tools.git
cd appscale-tools/debian
bash appscale_build.sh
不出意外,基本可以完成自动化安装。如果报错,请Google。
2、VM准备
首先将上面安装的VM进行clone,这里使用,复制出VM1和VM2。
然后对每个VM进行设置静态IP:修改每个VM的/etc/network/interfaces文件
VM1:
1
auto eth0
2
iface eth0 inet static
3
address 192.168.137.50
4
netmask 255.255.255.0
5
gateway 192.168.137.1
6
dns-nameservers 114.114.114.114
VM2:
1
auto eth0
2
iface eth0 inet static
3
address 192.168.137.51
4
netmask 255.255.255.0
5
gateway 192.168.137.1
6
dns-nameservers 114.114.114.114
VM3:
1
auto eth0
2
iface eth0 inet static
3
address 192.168.137.52
4
netmask 255.255.255.0
5
gateway 192.168.137.1
6
dns-nameservers 114.114.114.114
对应也修改每个VM的主机名。(配置文件/etc/hostname)
3、准备启动
三个VM重新启动后,在master上运行:
1
appscale init cluster
初始化集群。
修改自动生成的配置文件:AppScalefile
1
ips_layout :
2
master : 192.168.137.50
3
appengine : 192.168.137.50
4
database : 192.168.137.51
5
zookeeper : 192.168.137.52
4、启动集群
执行命令:
1
appscale up
看到以下输出信息:
01
Starting AppScale 1.14.0 over a virtualized cluster.
02
Log in to your head node: ssh -i /root/.appscale/appscale6099037d27e2439c8396c88148e5037b.key root@192.168.137.50
03
Head node successfully initialized at 192.168.137.50. It is now starting up cassandra.
04
Copying over deployment credentials
05
Starting AppController at 192.168.137.50
06
Please wait for the AppController to finish pre-processing tasks.
07
08
Please wait for AppScale to prepare your machines for use.
09
Copying over needed files and starting the AppController on the other VMs
10
UserAppServer is at 192.168.137.51
11
Enter your desired admin e-mail address: admin@geekcome.com
12
Enter new password:
13
Confirm password:
14
Creating new user account admin@geekcome.com
15
Creating new user account admin@192.168.137.50
16
Your XMPP username is admin@192.168.137.50
17
Granting admin privileges to admin@geekcome.com
18
AppScale successfully started!
19
View status information about your AppScale deployment at http://192.168.137.50:1080/status
这样就成功启动。
使用命令查看appscale status查看集群的状态:
可以登录web管理端:https://192.168.137.50:1443/
(完)
- PaaS平台– Google App Engine的开源实现AppScale环境搭建
- Google App Engine JAVA 开发环境搭建
- Google App Engine JAVA 开发环境搭建
- google app engine 开发环境搭建
- Google App Engine JAVA 开发环境搭建
- OpenShift3实现PaaS平台的搭建
- Google App Engine搭建Twitter API Proxy 运行环境教程
- eclipse python + GAE(Google App Engine) 开发环境搭建
- 几个Google App Engine 开源的Blog程序
- google app engine支持https(ssl)的开发环境配置
- Java PaaS 对决(Google App Engine、Amazon Elastic Beanstalk 和 CloudBees RUN@Cloud 的技术比较)
- Google App Engine搭建Twitter API Proxy
- 使用 Google App Engine 免费搭建站点
- Google App Engine的安装
- Google App Engine 碰到的
- 配置最优Google App Engine开发环境
- 收录几个开源的PaaS平台
- PAAS的开源实现
- OLTP简介
- C#初步接触
- Oracle第一讲
- 如何访问code.google.com
- poj 2003 Hire and Fire list+hash+模拟
- PaaS平台– Google App Engine的开源实现AppScale环境搭建
- CentOS 6.5 ZIP、RAR文件压缩解压操作详解
- Service-IntentService集成异步线程(2)
- TOJ 1701: Face The Right Way
- 把Session放入到Memcachad中的配置
- uva 10487 Closest Sums (遍历&二分查找&&双向查找)
- CKEditor图片上传实现详细步骤(使用Struts 2)
- 简述易语言与API
- C++类的编译过程