使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类 。
在 Compute Engine 中创建 is 虚拟机实例 Linux 虚拟机实例
了解如何使用 Google Cloud 控制台在 Compute Engine 中创建 Linux 虚拟机 (VM) 实例。
如需在 Google Cloud 控制台中直接遵循有关此任务的分步指导,请点击操作演示:
操作演示
准备工作
-
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 . -
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
-
Make sure that billing is enabled for your Google Cloud project.
-
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
-
Make sure that billing is enabled for your Google Cloud project.
- 启用 Compute Engine API。
启用 Compute Engine API
创建 Linux 虚拟机实例
-
In the Google Cloud console, go to the
Create an instance page.Go to Create an instance
-
In the boot disk section is click , clickChange
to begin configure your boot disk . - 在 Public images 标签页上,从操作系统列表中选择Ubuntu。
- 从版本列表中选择Ubuntu 20.04 LTS。
- 点击选择。
- 在防火墙部分,选择 允许 HTTP 流量。
- 如需创建虚拟机,请点击创建。
启动虚拟机实例需要一段时间,请稍等片刻。准备就绪后,虚拟机实例会列在虚拟机实例页面上,并带有绿色状态图标。
Compute Engine 向创建虚拟机实例的用户授予roles/compute.instanceAdmin
角色。Compute Engine 还会将该用户添加到 sudo
组 。
连接到虚拟机实例
通过使用 Google Cloud 控制台并完成以下步骤,连接到虚拟机实例。您作为用于访问虚拟机实例页面的用户连接到虚拟机实例。
-
In the Google Cloud console , go to the
vm instance page .Go to VM instances
-
In the list of virtual machine instances, click SSH in the row of
the instance that you want to connect to.
清理
为避免因本页中使用的资源导致您的 Google Cloud 账号产生费用,请按照以下步骤操作 。
-
在 Google Cloud 控制台中,前往虚拟机实例页面 。
转到虚拟机实例
-
选择您在本教程中创建的虚拟机实例所在的行 。
-
点击delete 删除,然后点击删除进行确认 。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-25。
[[[“易于理解”,”easyToUnderstand”,”thumb-up”],[“解决了我的问题”,”solvedMyProblem”,”thumb-up”],[“其他”,”otherUp”,”thumb-up”]],[[“Hard to understand”,”hardToUnderstand”,”thumb-down”],[“Incorrect information or sample code”,”incorrectInformationOrSampleCode”,”thumb-down”],[“Missing the information/samples I need”,”missingTheInformationSamplesINeed”,”thumb-down”],[“翻译问题”,”translationIssue”,”thumb-down”],[“其他”,”otherDown”,”thumb-down”]],[“最后更新时间 (UTC):2024-11-25。”],[],[]]
© Copyright notes
The copyright of the article belongs to the author, please do not reprint without permission.
Related posts
No comments...