必備條件
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
使用第一個模擬器之前,您必須先完成以下事項
您需要做些什麼
安裝 Bazel
MPACT-Sim 使用 Bazel 建構系統 6.1.1 版、
因此,您必須安裝 Bazel,才能逐步完成教學課程。
安裝及管理 Terraform 最簡單的方法就是
Bazelisk,也就是用來
以 Go 編寫的 Bazel。如需安裝操作說明,請前往
GitHub 網站。
安裝 Git
MPACT-Sim 基礎架構和教學課程託管於 github.com,因此用來
必須安裝 git。任何合理的版本
,因此請選擇適合您系統的設定檔。
如果使用的是 Linux,但沒有 Git,通常
從指令列安裝 Git,如下所示:
$ sudo apt-get update
$ sudo apt-get install git
在其他系統上,您可以從 git 下載安裝程式
下載內容。
下載 MPACT-Sim 教學課程存放區
這些教學課程所需的程式碼均已加到 GitHub 中
mpact-sim-codelabs 存放區。
使用下列指令複製這個存放區:git clone
https://github.com/google/mpact-sim-codelabs
。
如要確認一切是否正常運作,請切換至 mpact-Sim-codelabs
並輸入下列指令。bazel build ...:all
這會下載所有
並建構每個目標系統第一次讀取這些元件時
這項作業會在幾分鐘內完成,但系統會快取結果,後續建構也會
完成更多工作指令會輸出進度,包括
偵錯訊息和一些編譯器警告。輸出內容的最後一個部分
看起來應該會像這樣:
INFO: Elapsed time: 308.268s, Critical Path: 279.57s
INFO: 991 processes: 314 internal, 677 linux-sandbox.
INFO: Build completed successfully, 991 total actions
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["To prepare for the simulator tutorials, install Bazel (version 6.1.1), preferably using Bazelisk. Install Git, compatible with your system, for accessing the GitHub-hosted resources. Download the `mpact-sim-codelabs` repository via `git clone https://github.com/google/mpact-sim-codelabs`. Navigate to the cloned directory and verify setup with `bazel build ...:all`, which downloads dependencies and builds all targets. The final output should display successful completion with a summary of processes.\n"]]