Compute Engine 是 運算和主機代管服務,可讓您在 Google 基礎架構上建立及執行虛擬機器。Compute Engine 提供規模、效能和價值優勢,方便您在 Google 的基礎架構上輕鬆啟用大型運算叢集。無須前期投資,就能讓數千個虛擬 CPU 在快速且效能保有一致性的系統上運作。瞭解詳情
使用價值 $300 美元的免費抵免額,開始進行概念驗證
-
取得 Gemini 2.0 Flash Thinking 的存取權
-
每月免費使用 AI API 和 BigQuery 等熱門產品
-
不會自動收費,也不會要求您一定要購買特定方案
繼續探索超過 20 項一律免費的產品
使用超過 20 項實用的免費產品,包括 AI API、VM 和 data warehouse 等。
訓練
訓練與教學課程
VM 遷移:規劃
瞭解如何規劃 VM 遷移作業,並在 Google Cloud 上部署基本基礎架構。
訓練
訓練與教學課程
雲端網路導覽
概略瞭解 Google Cloud 網路建構模塊。
訓練
訓練與教學課程
互動式逐步操作指南:在 Compute Engine 中建立 Linux VM
使用教學課程,直接在 Cloud 控制台中逐步建立 Linux VM。
訓練
訓練與教學課程
在 Compute Engine 上託管網頁應用程式實作實驗室
瞭解如何部署及調度範例應用程式的資源。
用途
用途
VM 遷移
有了 Migrate for Compute Engine,您就能輕鬆將 VM 從地端部署資料中心、AWS 或 Azure 遷移至 Compute Engine。您可以驗證、執行應用程式,並將應用程式遷移至 Google Cloud,完全不需重新編寫應用程式、修改映像檔或變更管理程序。
遷移
地端部署
自動化
用途
用途
可擴充及具有韌性的應用程式模式
瞭解如何運用模式和做法,建立兼具彈性與擴充性的應用程式,這是許多現代架構練習的兩大目標。設計完善的應用程式會隨著需求的增減而擴充或縮減,並具備足夠的彈性來承受服務中斷。
擴充性
應變能力
設計
用途
用途
IBM Db2 至 Compute Engine 的遷移策略
瞭解將同質的 Db2 遷移至 Compute Engine 的最佳做法。本文適用於要將 Db2 環境遷移至 Google Cloud 的資料庫管理員、系統管理員,以及軟體、資料庫和維運工程師。
IBM dB2
遷移
程式碼範例
程式碼範例
C# 範例
一組適用於 Compute Engine 的 .NET Cloud Client Library 範例。
程式碼範例
程式碼範例
Go 範例
一組適用於 Compute Engine 的 Go Cloud Client Library 範例。
程式碼範例
程式碼範例
Java 範例
一組適用於 Compute Engine 的 Java Cloud 用戶端程式庫範例。
程式碼範例
程式碼範例
Node.js 範例
一組適用於 Compute Engine 的 Node.js Cloud 用戶端程式庫範例。
程式碼範例
程式碼範例
PHP 範例
一組適用於 Compute Engine 的 PHP Cloud 用戶端程式庫範例。
程式碼範例
程式碼範例
Python 範例
一組適用於 Compute Engine 的 Python Cloud 用戶端程式庫範例。
程式碼範例
程式碼範例
Ruby 範例
一組適用於 Compute Engine 的 Ruby Cloud 用戶端程式庫範例。
程式碼範例
程式碼範例
Compute Engine 的 Terraform 範例集。
程式碼範例
程式碼範例
所有範例
瀏覽 Compute Engine 的所有範例。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-03 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-03 (世界標準時間)。"],[[["\u003cp\u003eCompute Engine enables users to create and run virtual machines on Google's infrastructure, providing a scalable and high-performance computing environment.\u003c/p\u003e\n"],["\u003cp\u003eThe service allows for the launching of large compute clusters without upfront investments, supporting thousands of virtual CPUs with consistent performance.\u003c/p\u003e\n"],["\u003cp\u003eExtensive documentation is available, including guides on machine families, deployment strategies, VM creation, SSH connections, migration paths, data protection, and instance lifecycle.\u003c/p\u003e\n"],["\u003cp\u003eCompute Engine offers various resources such as command-line tools, client libraries, REST APIs, pricing details, quotas, release notes, and support information.\u003c/p\u003e\n"],["\u003cp\u003eTraining resources are available for VM migration planning, cloud networking, creating Linux VMs, and hosting web apps on Compute Engine.\u003c/p\u003e\n"]]],[],null,["# Compute Engine documentation\n============================\n\n[Read product documentation](/compute/docs/overview)\nCompute Engine is a\n[computing and hosting service](/docs/overview/cloud-platform-services#computing-hosting) that lets you create\nand run virtual machines on Google infrastructure. Compute Engine offers scale,\nperformance, and value that lets you easily launch large compute clusters on Google's\ninfrastructure. There are no upfront investments, and you can run thousands of virtual\nCPUs on a system that offers quick, consistent performance.\n[Learn more](/compute/docs/overview)\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n [Machine families resource and comparison guide](/compute/docs/machine-resource)\n\n-\n\n [Choose a deployment strategy](/compute/docs/choose-compute-deployment-option)\n\n-\n\n [Create and start a VM](/compute/docs/instances/create-start-instance)\n\n-\n\n [About SSH connections](/compute/docs/instances/ssh)\n\n-\n\n [Choose a migration path](/compute/docs/import)\n\n-\n\n [Data protection options](/compute/docs/disks/data-protection)\n\n-\n\n [VM instance lifecycle](/compute/docs/instances/instance-lifecycle)\n\nfind_in_page\n\n### Reference\n\n-\n\n [gcloud compute command-line tool](/compute/docs/gcloud-compute)\n\n-\n\n [Client libraries](/compute/docs/api/libraries)\n\n-\n\n [REST API](/compute/docs/reference/rest/v1)\n\ninfo\n\n### Resources\n\n-\n\n [Pricing](/compute/all-pricing)\n\n-\n\n [Quotas and limits](/compute/quotas)\n\n-\n\n [Release notes](/compute/docs/release-notes)\n\n-\n\n [Support](/compute/docs/support)\n\n-\n\n [Samples and videos](/compute/docs/samples-and-videos)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### VM migration: planning\n\n\nLearn how to plan a VM migration and deploy your basic infrastructure on Google Cloud.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/55160?parent=catalog) \nTraining \nTraining and tutorials\n\n### A tour of Cloud Networking\n\n\nGet an overview of Google Cloud networking building blocks.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/84417?parent=catalog) \nTraining \nTraining and tutorials\n\n### Interactive walkthrough: Create a Linux VM in Compute Engine\n\n\nCreate a Linux VM by using a tutorial that walks you through the steps directly in the Cloud console.\n\n\n[Learn more](https://console.cloud.google.com/compute/instances?walkthrough_tutorial_id=compute_short_quickstart) \nTraining \nTraining and tutorials\n\n### Hosting a web app on Compute Engine hands-on lab\n\n\nLearn how to deploy and scale a sample application.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/11952?parent=catalog) \nUse case \nUse cases\n\n### VM migration\n\n\nMigrate for Compute Engine allows you to easily migrate VMs from your on-premises data center, AWS, or Azure into Compute Engine. You validate, run, and migrate applications into Google Cloud without rewriting them, modifying the image, or changing management processes.\n\nMigration On-Prem Automation\n\n\u003cbr /\u003e\n\n[Learn more](/migrate/compute-engine) \nUse case \nUse cases\n\n### Patterns for scalable and resilient apps\n\n\nLearn patterns and practices for creating apps that are resilient and scalable, two essential goals of many modern architecture exercises. A well-designed app scales up and down as demand increases and decreases, and is resilient enough to withstand service disruptions.\n\nScaling Resilience Design\n\n\u003cbr /\u003e\n\n[Learn more](/solutions/scalable-and-resilient-apps) \nUse case \nUse cases\n\n### Strategies to migrate IBM Db2 to Compute Engine\n\n\nLearn best practices for a homogeneous Db2 migration to Compute Engine. This document is intended for database admins, system admins and software, database, and ops engineers who are migrating Db2 environments to Google Cloud.\n\nIBM dB2 Migration\n\n\u003cbr /\u003e\n\n[Learn more](/solutions/strategies-to-migrate-ibm-db2-to-compute-engine) \nCode sample \nCode Samples\n\n### C# samples\n\n\nA set of .NET Cloud Client Library samples for Compute Engine.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/main/compute/api/Compute.Samples) \nCode sample \nCode Samples\n\n### Go samples\n\n\nA set of Go Cloud Client Library samples for Compute Engine.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/golang-samples/tree/main/compute) \nCode sample \nCode Samples\n\n### Java samples\n\n\nA set of Java Cloud Client Library samples for Compute Engine.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/compute/cloud-client/src/main/java/compute) \nCode sample \nCode Samples\n\n### Node.js samples\n\n\nA set of Node.js Cloud Client Library samples for Compute Engine.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/main/compute) \nCode sample \nCode Samples\n\n### PHP samples\n\n\nA set of PHP Cloud Client Library samples for Compute Engine.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/php-docs-samples/tree/main/compute) \nCode sample \nCode Samples\n\n### Python samples\n\n\nA set of Python Cloud Client Library samples for Compute Engine.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/compute/client_library/snippets) \nCode sample \nCode Samples\n\n### Ruby samples\n\n\nA set of Ruby Cloud Client Library samples for Compute Engine.\n\n\n[Open GitHub\narrow_forward](https://github.com/googleapis/google-cloud-ruby/tree/main/google-cloud-compute-v1/samples) \nCode sample \nCode Samples\n\n### Terraform samples\n\n\nA set of Terraform samples for Compute Engine.\n\n\n[Open GitHub\narrow_forward](https://github.com/terraform-google-modules/terraform-docs-samples/tree/main/compute) \nCode sample \nCode Samples\n\n### All samples\n\n\nBrowse all samples for Compute Engine.\n\n\n[Get started](/compute/docs/samples)\n\nRelated videos\n--------------\n\n### Try Compute Engine for yourself\n\nCreate an account to evaluate how our products perform in real-world scenarios. \nNew customers also get $300 in free credits to run, test, and deploy workloads. \n[Try Compute Engine free](https://console.cloud.google.com/freetrial)"]]