51
Google Cloud Platform Google Compute Engine 1.5.2014 by tureki

Google Cloud Platform 入門

Embed Size (px)

DESCRIPTION

了解Google Cloud Platform,並快速在平台上建立虛擬伺服器,登入管理,擴充硬碟等。

Citation preview

Page 1: Google Cloud Platform 入門

Google Cloud Platform 入⾨門Google Compute Engine

1.5.2014 by tureki

Page 2: Google Cloud Platform 入門

Google Cloud Platform ?

✤ 由Google所建⽴立的雲端運算平台!

✤ 提供許多遠端Web服務,適⽤用於網路、︑⾏行動和後端平台解決⽅方案的運算、︑儲存以及應⽤用程式服務。︒

Page 3: Google Cloud Platform 入門

對於Google要進入雲端市場!

個⼈人非常⽀支持

Page 4: Google Cloud Platform 入門

類似服務(極度類似)

✤ (亞⾺馬遜)AWS!

✤ (微軟)AZURE!

✤ Rackspace!

✤ .etc

Page 5: Google Cloud Platform 入門

效能與穩定性

✤ goo.gl/uLq6l1!

✤ goo.gl/oyQX0X!

✤ goo.gl/nnZlKs!

✤ 有興趣可參考以上鏈接

Page 6: Google Cloud Platform 入門

價格(這是重點)

✤ goo.gl/p19aoX(超詳細比較)!

✤ goo.gl/F5pEKu (Google官⽅方線上費⽤用計算)!

✤ goo.gl/xEzmFc (AWS線上費⽤用計算)!

✤ 更詳細的比較,你可以直接打開各家費⽤用計算來比較

Page 7: Google Cloud Platform 入門

Google Cloud機房分佈

✤ US!

✤ EU!

✤ ASIA

Page 8: Google Cloud Platform 入門

PING Google Asia

基礎維持在 1xms (⼈人在台北)!

非常的快

Page 9: Google Cloud Platform 入門

PING AWS Asia - JP

AWS沒Asia台灣,只好選個最近的⽇日本測試(⼈人在台北)!

維持在 7Xms!

同樣是ASIA但和Google Asia差多了

Page 10: Google Cloud Platform 入門

雖然AWS的機房分佈較多(8個)!

但Google Cloud在台灣有機房!

加分!

Page 11: Google Cloud Platform 入門

名詞對照

AWS Google Cloud

EC2 CE

EBS DISKs

AMI IMAGES

ELB Load Balancing

RDS Cloud SQL

S3 Cloud Storage

dynamoDB Cloud Datastore

Page 12: Google Cloud Platform 入門

反正雲端服務對我⽽而⾔言...

Page 13: Google Cloud Platform 入門

省去跑機房的時間!

省去維護硬體時間!

省去⼀一堆有的沒的...

Page 14: Google Cloud Platform 入門

⽤用最少的資源!

享受世界級的服務和佈局

Page 15: Google Cloud Platform 入門

開始Google Cloud之旅

Page 16: Google Cloud Platform 入門

前往 https://cloud.google.com/!

點擊 ⽴立即試⽤用

Page 17: Google Cloud Platform 入門

Google Cloud 是以專案模式來管理服務!

這是它和AWS比較不⼀一樣的地⽅方

Page 18: Google Cloud Platform 入門

專案建⽴立後看到的樣⼦子,你可以因應不同需求,建⽴立不同專案

Page 19: Google Cloud Platform 入門

如何建⽴立⼀一個CE?(compute engine)

Page 20: Google Cloud Platform 入門

點擊右欄的Compute Engine!

然後是先綁定信⽤用卡

Page 21: Google Cloud Platform 入門

開始建⽴立⼀一個CE

Page 22: Google Cloud Platform 入門

賦予它⼀一個名字

Page 23: Google Cloud Platform 入門

✤ 區域就選亞洲,就只有3個區域讓你選擇!

✤ 機器類型就看你要⽤用到多少!

✤ 開機來源,就看你有沒有⾃自訂⾃自⼰己的Images,沒有的話可以⽤用官⽅方提供的主流OS!

✤ 映像檔會隨你的開機來源改變!

✤ 網路和IP就先⽤用預設的(有需要的時候在調整)

Page 24: Google Cloud Platform 入門

成功建⽴立後就能看到該CE了

Page 25: Google Cloud Platform 入門

該如何連到該CE?

Page 26: Google Cloud Platform 入門

前往 https://developers.google.com/cloud/sdk/!

選擇OS安裝

Page 27: Google Cloud Platform 入門

這部份我是⽤用MAC安裝!

curl https://sdk.cloud.google.com | bash

Page 28: Google Cloud Platform 入門

成功安裝呢︖?

Page 29: Google Cloud Platform 入門

在CE的畫⾯面點擊 SSH

Page 30: Google Cloud Platform 入門

把指令貼在你的terminal,⽤用剛裝的SDK執⾏行第⼀一次連線!

然後google會需要你的授權

Page 31: Google Cloud Platform 入門

成功登入!!

之後你都可以⽤用該電腦直接SSH到該CE!

接下來就安裝你要的服務吧。︒

Page 32: Google Cloud Platform 入門

如何建⽴立⼀一個Disks?

Page 33: Google Cloud Platform 入門

就在介⾯面點 磁碟 來新增吧。︒!

反正它就是硬碟

Page 34: Google Cloud Platform 入門

✤ 區域就先亞洲,因為CE在亞洲!

✤ 來源就選空⽩白(待會⾃自⼰己格式化)

Page 35: Google Cloud Platform 入門

成功建⽴立後就能看到該Disk了

Page 36: Google Cloud Platform 入門

如何把Disk掛到CE︖?

Page 37: Google Cloud Platform 入門

回到該⾴頁⾯面,然後點要綁定的CE

Page 38: Google Cloud Platform 入門

然後在Disk的這個區域,點連接就能掛上

Page 39: Google Cloud Platform 入門

掛上後要在哪裏可以找到Disk︖?

Page 40: Google Cloud Platform 入門

連接Disk後,你能在CE內的/dev/disk/發現它們!

google-lab 就是開機的root!

google-disk-1 就是剛建⽴立的disk

Page 41: Google Cloud Platform 入門

到哪裏格式化?

Page 42: Google Cloud Platform 入門

sudo mkfs.ext4 /dev/sdb!

(因為/dev/sdb是disk-1的實際位置)

Page 43: Google Cloud Platform 入門

sudo mount /dev/sdb test/!

最後按df就能看到Disk已經掛上去!⼤大功告成!

Page 44: Google Cloud Platform 入門

就這麼簡單...

Page 45: Google Cloud Platform 入門

其他資源

✤ https://developers.google.com/compute/?hl=zh-tw (服務詳細的說明點URL就對了,官⽅方說明很清楚)

Page 46: Google Cloud Platform 入門

總結

Page 47: Google Cloud Platform 入門

Google 什麼都不多,機器最多。︒

Page 48: Google Cloud Platform 入門

除了API和操作介⾯面不太⼀一樣以外!

和其他雲端服務概念沒差多少!

玩過AWS去玩Google Cloud幾乎沒什麼難度

Page 49: Google Cloud Platform 入門

價格上Google Cloud較便宜!

只是Google Cloud還在持續發展中!

沒有AWS的服務那麼完整

Page 50: Google Cloud Platform 入門

不過就Google Cloud CE來說!

已經夠我⽤用了

Page 51: Google Cloud Platform 入門

Q&A