【 Cloud 】透過 Amazon Lightsail 建立 Ghost Blog
內容
- 學習目標
 - 前置準備作業
 - 使用 AWS Lightsail 建立 Ghost Blog
 - 遠端登入到 Lightsail Ghost Instance
 - 取得登入 Ghost 管理後台的帳號與密碼
 - 登入到 Ghost 管理後台
 
學習目標
- 如何透過 AWS Lightsail 建立 Ghost Blog
 
前置準備作業
- 已開通 AWS
 
使用 AWS Lightsail 建立 Ghost Blog
Step 1. 登入 AWS 後於上方搜尋框搜尋 Lightsail 並點選搜尋結果中的 Services > Lightsail
Step 2. 點選 Create instance
Step 3. 選擇 Instance 規格
- Instance location 
- 選擇此 Instance 要建立於哪個區域,本範例使用 
Virginia 
 - 選擇此 Instance 要建立於哪個區域,本範例使用 
 
- Select a platform 
- 選擇所要用的作業系統,本範例使用 
Linux/Unix 
 - 選擇所要用的作業系統,本範例使用 
 
- Select a blueprint 
- 選擇所要使用的服務,請選擇 
Ghost 
 - 選擇所要使用的服務,請選擇 
 
- 下載遠端登入時要用的 
key- 點選 
Change SSH key pair 
 - 點選 
 
- 點選 
Download(下載的檔案名稱LightsailDefaultKey-服務啟動區域的名稱.pem) 
- Choose your instance plan 
- 選擇所要使用的服務規格
 
 
- Identify your instance 
- 輸入此 Instance 獨一無二的名稱後再點選下方的 
Create instance 
 - 輸入此 Instance 獨一無二的名稱後再點選下方的 
 
- 取的 
Lightsail Ghost Instance IP
 
遠端登入到 Lightsail Ghost Instance
-  
macOS
- 開啟 
終端機並切換工作路徑到剛剛所下載key的地方- 本範例將 
key放於桌面的 Ghost 資料夾 
cd /Users/archer/Desktop/Ghost - 本範例將 
 - 查看目錄內容
ls - 更改 
key權限chmod 600 key的檔案名稱 - ssh 登入到 Lightsail Ghost Instance 
- 輸入下方指令後再輸入 
yes 
ssh -i "key的檔案名稱" bitnami@Lightsail Ghost Instance IP - 輸入下方指令後再輸入 
 - 登入成功
 
 - 開啟 
 -  
Windows
- 下載 
putty - .pem 憑證檔轉成 .ppk 
- 開啟 PuTTYgen
 
 
- 載入私有金鑰 
- 點選 
File>Load private key
 - 將右下角 
PuTTY Private Key Files(*.ppk)選項改成All Files (*.*)
 - 切換路徑到 
key所有位置並開啟key
 - 點選 
確定
 - 點選 
Save private key
 - 點選 
是
 - 設定檔案名稱並點選 
存檔
 
 - 點選 
 - 開啟 PuTTY 
- 點選 
開始>所有程式>PuTTY
 - 點選 
Connection>SSH>Auth
 - 點選 
Browse按鈕,匯入剛產生的 .ppk 憑證檔,再點選開啟
 - 點選 
Session
 - 在 
Host Name (or IP address)欄位輸入Lightsail Ghost Instance IP,再點選Open
 - 點選 
Accept
 - 輸入帳號為 
bitnami,當輸入完成後按Enter 鍵
 - 登入成功
 
 - 點選 
 
 - 下載 
 
取得登入 Ghost 管理後台的帳號與密碼
- Ghost 的預設登入帳號為 
user@example.com - Ghost 的預設密碼請輸入下方指令取得
cat ~/bitnami_application_password 
登入到 Ghost 管理後台
- 開啟瀏覽器輸入 
http://Lightsail Ghost Instance IP/ghost 
- 輸入帳號與密碼 ( 依上步驟所得到的資訊進行登入 )
 
- 登入成功