> ## Content Index
> Fetch the complete content index at: https://www.albert-yu.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# 2020ironman 12th – Modern Web – Day03 – 傳統感受 虛擬主機 Amazon Lightsail
- URL: https://www.albert-yu.com/blog/2020ironman-12th-modern-web-day03-amazon-lightsail-virtual-host/
- Published: 2020-09-16T16:00:26.000Z
- Updated: 2026-10-30T03:43:21.000Z
- Author: Albert Yu
- Tags: 2020ironman 12th – Modern Web - PHP on AWS 進化論 - 從單主機一路進化到Serverless，以WordPress與 laravel 為例 (中斷), Ithome鐵人賽

[](https://aws.amazon.com/tw/lightsail/?ref=albert-yu.com)

### 特色

他就只是個有AWS招牌的VPS

如果您不瞭解啥是VPS

簡配的網路、簡配的負載平衡、檢配的防火強、檢配的規格

除了OS可能會給多一點東西之外一律都是檢配

這邊的簡配是相對的，他相對於linode、godaddy的VPS來說功能性上一點都不差

但是相對於AWS EC2擁有完整功能的VM來說的確少了些方便於擴展性

但是如果需要是可以隨時將Lightsail轉換至AWS EC2的

附帶一題現在Lightsail已經有提供快速的CDN整合服務不用再額外整合免費但是沒有台灣節點的cloudflxxx了

參考連結 [使用Lightsail Content Delivery Network改善網站性能](https://aws.amazon.com/tw/blogs/compute/improving-website-performance-with-lightsail-content-delivery-network/?ref=albert-yu.com)

### 建立方式

**先擁有一個AWS帳號**

*然後登入* 廢話

找到Lightsail就點進去準備開主機了

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-02.png)

點選Create instance就可以開始建立了

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-03.png)

建立主機只有三個重點

1\. 選離自己進的主機或者是選客戶近的主機  
2\. 選自己要的OS

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-04.png)

選好之後往下拉有其他選項

3\. 建立並下載一把key，這邊需要講到AWS中的一個特點AWS的主機不喜歡用密碼登入，所有人都是用key登入的  
4\. 選規格拉

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-05.png)

都選好之後名字就看你要怎樣取或開幾台隨意決定後就可以點選Create install建立主機拉

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-06.png)

等待的大約30秒主機就出來拉

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-07.png)

這邊如果要連入可以點選打開Web GUI來進行指令操作拉

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-08.png)

點進去就可以看到更多的功能出現在眼前

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-09.png)

這邊如果您要用本機SSH去連之外除了下面的提示要Key要注意防火牆有沒有開

如果22port沒開可能連都連不進去

還有如果要建立https的網站記得要開443喔

![](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day03-chuan-tong-gan-shou-xu-ni-zhu-ji-amazon-lightsail-10.png)

其實lightsail是很簡單的服務絕大部分人都會操作

但是由於他放在AWS中被其他服務所淹沒

所已變成不起眼的存在

但是勇敢的衝八

###  PHP+MYSQL的安裝方法

安裝方法太多人有寫了

既然是VPS類型我就推薦比較好的參考連結八！

[digitalocean](https://www.digitalocean.com/community/tutorials?ref=albert-yu.com) 他的主機我用過還不錯但是我更讚嘆他們文件的精準度，安裝參考他們准沒錯

[linode](https://www.linode.com/docs/web-servers/?ref=albert-yu.com) 老牌了，以前路由很好。但自從博亦大量使用後品質不如前了，但是文章還是很有參考的價值