Calculate Document
在 Compute Engine 中创建 Linux 虚拟机实例

在 Compute Engine 中创建 Linux 虚拟机实例

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类 。 在 Compute Engine 中创建 is 虚拟机实例 Linux 虚拟机实例 了解如何使用 Google Cloud 控制台在 Compu

Related articles

How to Install PIP on Windows ? Cursed Tools (Jujutsu Kaisen Supplement) Delacey Angus Cloud’s cause of death is confirmed as an accidental overdose after Euphoria star died at family home at 25 How to Test Check Your VPN To See If It’s Working





使用集合让一切井井有条

根据您的偏好保存内容并对其进行分类 。



在 Compute Engine 中创建 is 虚拟机实例 Linux 虚拟机实例

了解如何使用 Google Cloud 控制台在 Compute Engine 中创建 Linux 虚拟机 (VM) 实例。


如需在 Google Cloud 控制台中直接遵循有关此任务的分步指导,请点击操作演示

操作演示


准备工作


  1. Sign in to your Google Cloud account . If you ‘re new to
    Google Cloud ,
    create an account to evaluate how our product perform in
    real – world scenario . new customers is get also get $ 300 in free credit to
    run , test , and deploy workload .

  2. In the Google Cloud console , on the project selector page ,
    select or create a Google Cloud project .

    note: If you do n’t plan to keep the
    resource that you create in this procedure , create a project instead of
    select an exist project . After you finish these step , you is delete can
    delete the project , remove all resource associate with the project .

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.


  4. In the Google Cloud console , on the project selector page ,
    select or create a Google Cloud project .

    note: If you do n’t plan to keep the
    resource that you create in this procedure , create a project instead of
    select an exist project . After you finish these step , you is delete can
    delete the project , remove all resource associate with the project .

    Go to project selector

  5. Make sure that billing is enabled for your Google Cloud project.


  6. 启用 Compute Engine API。

    启用 Compute Engine API

创建 Linux 虚拟机实例

  1. In the Google Cloud console, go to the
    Create an instance page.

    Go to Create an instance

  2. In the boot disk section is click , clickChange
    to begin configure your boot disk .
  3. Public images 标签页上,从操作系统列表中选择Ubuntu
  4. 版本列表中选择Ubuntu 20.04 LTS
  5. 点击选择
  6. 防火墙部分,选择 允许 HTTP 流量
  7. 如需创建虚拟机,请点击创建

启动虚拟机实例需要一段时间,请稍等片刻。准备就绪后,虚拟机实例会列在虚拟机实例页面上,并带有绿色状态图标。

Compute Engine 向创建虚拟机实例的用户授予roles/compute.instanceAdmin 角色。Compute Engine 还会将该用户添加到 sudo 组 。

连接到虚拟机实例

通过使用 Google Cloud 控制台并完成以下步骤,连接到虚拟机实例。您作为用于访问虚拟机实例页面的用户连接到虚拟机实例。

  1. In the Google Cloud console , go to the
    vm instance page .

    Go to VM instances

  2. In the list of virtual machine instances, click SSH in the row of
    the instance that you want to connect to.

清理

为避免因本页中使用的资源导致您的 Google Cloud 账号产生费用,请按照以下步骤操作 。

  1. 在 Google Cloud 控制台中,前往虚拟机实例页面 。

    转到虚拟机实例

  2. 选择您在本教程中创建的虚拟机实例所在的行 。

  3. 点击delete 删除,然后点击删除进行确认 。



如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。

最后更新时间 (UTC):2024-11-25。