Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Introduction Infrastructure - Linode 入門
Search
chph
February 24, 2017
Technology
240
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction Infrastructure - Linode 入門
chph
February 24, 2017
More Decks by chph
See All by chph
Chrome Dev Tools 基礎技巧
chph
0
100
DevOpsDays Taipei 2017 敏捷思維分享
chph
0
120
在 Google Cloud Platform 架設你的網站伺服器並撰寫 Node.js 應用程式
chph
0
720
Intro to Progressive Web Apps
chph
1
78
淺談 Gzip
chph
0
140
Install WordPress on Linode
chph
0
170
高速傳愛~三小時進化 PWA
chph
0
310
Optimize JavaScript execution and parse time using optimize-js
chph
0
170
Modern Web 2016 議程分享: 網站自動化測試 - 以 PIXNET 搜尋 & 美妝口碑大賞為例
chph
0
140
Other Decks in Technology
See All in Technology
20260912_スクラムにジェネラリストは必要か
ryugen04
0
310
Multica × 長期記憶:40個のミニプロジェクト管理
eiei114
1
230
OpenTelemetryのメトリクスをCloudWatchに送ってPromQLで見てみた
ota1022
0
120
クロスボーダーM&AのValue Upを支えるプロダクト開発。日米チームのハブになったプロダクトエンジニアの実践 / Product Engineering Conference 2026
genda
0
110
Snowflakeのコスト最適化を支えるアーキテクチャ設計
ktatsuya
0
1.4k
PfEingのアプローチで働こう
rindrics
0
210
2026/09/10 Spring Bootから Jakarta EE/MicroProfileへの移行
megascus
0
300
AIで実装は速くなった。なのにプロダクトは速くならない。職能の壁を越えて価値のフローを設計する
nwiizo
8
7.8k
TinyGo 開発サイクルを高速化する:Go で作るエミュレータ入門
zozotech
PRO
1
590
作り直せるコードは迅速に 作り直せないDBは慎重に - AI時代のプロダクトエンジニアが「判断の不可逆性」で開発速度を変える話
kinosuke01
0
300
Oracle Cloud Infrastructure IaaS 新機能アップデート 2026/6 - 2026/8
oracle4engineer
PRO
0
140
HRC_Frontend_Conference_Fukuoka_2026.pdf
ts020
0
360
Featured
See All Featured
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
Building Applications with DynamoDB
mza
96
7.2k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
The agentic SEO stack - context over prompts
schlessera
0
920
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
270
Ethics towards AI in product and experience design
skipperchong
2
370
The Curious Case for Waylosing
cassininazir
1
500
Utilizing Notion as your number one productivity tool
mfonobong
4
580
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
HDC tutorial
michielstock
2
860
Transcript
styleMe 會議室∘2017.02.24 afu @ 研發中⼼前端組 @afutseng Introduction Infrastructure
Virtual Private Server VPS 虛擬專⽤主機
在講 VPS 之前...
共享主機 (Shared Hosting) • 也有 Web Hosting / Virtual Hosting
等名稱 • ⼀台伺服器放多個網站,只有⼀個是⾃⼰的 • 共⽤基礎設施:IP, CPU, 記憶體, 硬碟, 頻寬 • 背包客旅館 / 分租套房概念
共享主機 (Shared Hosting) • 優勢 • 費⽤便宜 • 專⼈維運機器等基礎設施,因此有代管稱呼 •
劣勢 • 其他⽤⼾網站使⽤較多資源時被連累 • ⾃主權低,通常不能⾃⼰裝軟體 • 例如升級作業系統 / Node.js / PHP / Apache
專屬主機 (Dedicated Server) • 擁有⼀台實體主機 • 獨佔所有主機的硬體資源 • ⼀台主機可以放 N
個⾃⼰的網站 • 獨棟透天厝概念
專屬主機 (Dedicated Server) • 優勢 • 完全獨⽴,不會被別⼈網站影響 (除⾮遇到機房災害) • ⾃主權最⾼,可以裝軟體、當⼆房東分租他⼈皆可
• 適合⼤型網站使⽤,專屬主機越多就會⾃建機房 (PIXNET) • 劣勢 • 費⽤昂貴 • 難以 Scale up / Scale out,硬體資源已被固定
虛擬專⽤主機 (Virtual Private Server) • ⾼檔的虛擬主機 • 專屬基礎設施:IP, CPU, 記憶體,
硬碟, 頻寬 • 可以放 N 個⾃⼰的網站 • 獨⽴套房概念,專屬衛浴/冷氣/電錶 • ⼀台實體主機裡會有多個 VPS,但彼此完全隔 離,不會佔⽤他⼈的 CPU 記憶體等資源
Why Linode?
None
試開⼀台 $5/mo 的機器
選擇地區 • 根據你的使⽤者決定機器開在哪個地區 • 服務對象是台灣則選東京最適合 • 距離越近延遲 (latency) 越低
機器建⽴完成
佈署偏好的映像檔 • 點選 Deploy an image • 選擇偏好的 OS,推薦 Ubuntu
16.04 LTS • Ubuntu 的⽣態圈步調較快,更新較勤 • LTS 為⻑期⽀援版本,Server 版有五年的更新⽀援
作業系統佈署完成 • 初始為關機狀態 • 接下來按 Boot 開機
開機完成 • 按 Boot 開機
找到 IP 並 ssh 連⼊機器 • ⽤剛才佈署機器時的密碼登⼊
注意!允許 root 登⼊是⾼⾵險 * 駭客只要猜中密碼就可以侵⼊機器! * 實務作法會關閉 root 的 ssh
權限,開 sudo 權限給 ⾃⼰的帳號 ! ! !
以 iTerm ⽰範 ssh 登⼊ • Windows ⽅案:putty
連⼊伺服器後的前置作業?
幾件⾸要⼯作 • 安裝 vim (除⾮你喜歡⽤ nano … ) • 替⾃⼰建⼀個帳號開
sudo,確認可以 ssh 連上 • ⽤ ssh-keygen 產⽣ SSH key • 關閉 root 的 ssh 權限 • 跑系統更新 • 替機器取名字 • 設定時區,確認時間
系統更新 • apt-get update # 更新套件資訊 • apt-get upgrade #
升級所有套件 • 可以寫成⼀⾏ • apt-get update && apt-get upgrade • 應定期更新系統套件以免累積技術債
替機器命名 • hostname # 顯⽰⺫前機器名稱 • 機器命名原則:描述⽤途、具備唯⼀性 • homepage-web-1 •
panel-api-2 • staging-db-3
替機器命名 (續) • 暫時改名,重開機後復原 • hostname afu-demo • 永久改名 •
vim /etc/hosts • vim /etc/hostname
設定時區 • dpkg-reconfigure tzdata
檢查時區 • ⽤ date 指令檢查時區
新增使⽤者 • adduser afu • usermod -aG sudo afu #
加⼊ sudo 群組 • ⼀直按 enter • 開新的終端機⽤新帳號登⼊ • sudo su - # 確認可以變⾝為 root
停⽤ root 帳號 ssh 登⼊ • sudo vim /etc/ssh/sshd_config •
PermitRootLogin no # 修改為 no • service ssh restart # 重開 ssh 服務
下次預告 Apache & MySQL & PHP 安裝
References 1. https://www.linode.com/docs/getting-started 2. https://www.digitalocean.com/community/tutorials/ initial-server-setup-with-ubuntu-16-04
感謝聆聽 @afutseng