February 22Feb 22 VPS/雲主機的國際測速 當你的 VPS/雲主機 服務的對象包含國際用戶時,測試其對外連線速度就變得非常重要 以下介紹兩款常見的測速工具,並提供實用指令與使用建議 ------------------- YABS 一鍵腳本 ------------------- 若只想用 iperf3 測試網路速度 curl -sL yabs.sh | bash -s -- -fg說明: 僅執行 iperf3 測速,不包含硬碟與硬體測試 適合快速了解主機的國際頻寬表現 支援多點測試,結果較為客觀-------------------------------------- speedtest-cli (基於 Speedtest.net) -------------------------------------- 安裝方式 apt update 安裝 speedtest-cli apt install speedtest-cli 伺服器當地的測速,完整詳細輸出模式 speedtest-cli 會顯示: ISP名稱 IP位址 測速伺服器 (位置與距離) Ping 值 下載速度 上傳速度 適用情境: 網路問題診斷 測速記錄與除錯 初次測試或需完整資訊時 伺服器當地的測速,精簡輸出模式 speedtest-cli --simple 只顯示三個關鍵數值: Ping Download Upload 適合用途 腳本自動化 系統監控 cron排程 log收集 列出可用測速節點 speedtest-cli --list 指定測速伺服器 speedtest-cli --server <伺服器ID> 範例: speedtest-cli --server 73629 Edited February 22Feb 22 by Jack
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.