简体   繁体   English

gcloud 命令行中这些命令集之间的实际区别是什么?

[英]What's the actual difference between these set of commands in gcloud command-line?

I have completed a basic lab in Qwiklabs platform.我已经在 Qwiklabs 平台上完成了基础实验。 But I still don't get the difference between these set of commands.但我仍然不明白这些命令集之间的区别。

To see what your default region and zone settings are, run the following commands:要查看您的默认区域和区域设置是什么,请运行以下命令:

gcloud config get-value compute/zone

gcloud config get-value compute/region

Identify your default region and zone确定您的默认区域和可用区

gcloud compute project-info describe --project <your_project_ID>

Google Cloud has regions, which are geographic areas. Google Cloud 有区域,即地理区域。 Within a region are zones, which are large data centers.区域内有区域,区域是大型数据中心。 A typical region has three or more zones within a region.一个典型的区域在一个区域内具有三个或更多区域。

As of today, there are 28 regions and 85 zones.截至今天,共有 28 个地区和 85 个专区。 In addition, there are 146.network edge locations that are important for CDNs and.network entry points into the Google Cloud.network.此外,还有 146 个对于 CDN 和进入 Google Cloud.network 的网络入口点很重要的网络边缘位置。 Seven more regions are planned, raising the total number of regions to 35.计划增加 7 个区域,使区域总数增加到 35 个。

When you launch a service you need to specify the zone (usually).当您启动服务时,您需要指定区域(通常)。 Some commands require specifying the region.一些命令需要指定区域。

The CLI has variables to remember your preferred region and zone. CLI 有变量来记住您的首选区域和区域。 These options can be modified via command-line options when executing individual commands.在执行单个命令时,可以通过命令行选项修改这些选项。

gcloud config set gcloud 配置集

Cloud locations云位置

Compute Engine Regions and zones Compute Engine 区域和可用区

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 gcloud 和 gsutil 有什么区别? - What is the difference between gcloud and gsutil? Beanstalk 中的 commands 和 container_commands 配置键有什么区别? - What is the difference between commands and container_commands configuration keys in Beanstalk? Firebase AngularFireAuth 和 Auth 有什么区别? - What's the difference between Firebase AngularFireAuth and Auth? MessageAttributeValue 和 MessageSystemAttributeValue 有什么区别 - What's the difference between MessageAttributeValue and MessageSystemAttributeValue Lex 中记录的意图状态与实际可用值有何不同?这些状态中的每一个之间有什么区别? - How is it that the documented intent states in Lex are different from the actual available values?What is the difference between each of these states? Kube.netes 和 Kube.netes Engine 有什么区别? - What's the difference between Kubernetes and Kubernetes Engine? Cloud Firestore 和 Firebase 实时数据库有什么区别? - What's the difference between Cloud Firestore and the Firebase Realtime Database? 在 AWS/Azure 中运行但需要访问 GCLOUD 命令的容器化应用程序中,设置 gcloud 身份验证的最佳方法是什么? - In a containerized application that runs in AWS/Azure but needs to access GCLOUD commands, what is the best way to setup gcloud authentication? Go 中的数据竞争和条件有什么区别? - What's the difference between Data Race and Condition in Go? buildspec、appspec 和滚动我自己的 AMI 之间有什么区别? - What's the difference between buildspec, appspec, and rolling my own AMI?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM