将新函数部署到 Google Cloud时,请使用 Cloud Run。本页面提供了有关使用 Google Cloud 控制台和 Google Cloud CLI 在 Cloud Run 中部署示例函数的快速入门。快速入门包含多种编程语言(包括 Node.js、Python、Go、Java、Ruby、PHP 和 .NET)对应的步骤。
关于 Cloud Run functions
Cloud Run functions(原称 Cloud Functions [第 2 代])是用于部署函数的最新 Google Cloud 产品。您可以在 Cloud Run 上部署函数即服务,并将该函数配置为回应 HTTP(S) 请求或响应基于 Eventarc 的触发器传播的事件。
使用 Cloud Run 函数后,您无需再管理服务器、配置软件、更新框架和修补操作系统。软件和基础设施完全由 Google 管理,这样您只需添加代码即可。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-14。"],[[["Cloud Run is the recommended service for deploying new functions on Google Cloud, offering a serverless environment."],["Cloud Run functions, formerly known as Cloud Functions (2nd gen), can be configured to respond to HTTP(S) requests or Eventarc-based triggers."],["The service handles server management, software configuration, and system updates, allowing users to focus solely on writing code."],["Quickstarts are available for deploying sample functions via the Google Cloud console or the gcloud CLI, supporting languages like Node.js, Python, Go, Java, Ruby, PHP, and .NET."]]],[]]