如何更改 Google Cloud 中的区域/区域? [英] How to change Region / Zone in Google Cloud?
问题描述
我对 Google Cloud 非常陌生.我能够建立一个 wordpress 网站,现在正在处理它.但是,我的 vm 实例似乎将以下 asia-east1-a 用于其区域.我能够使用带有以下输出的 gcloud 命令更改区域和区域:
I am very new to Google Cloud. I was able to setup a wordpress site and am working on it now. However, it appears that my vm instance is using the following asia-east1-a for its zone. I was able to change the Region and Zone using gcloud commands with the following output:
$ gcloud config list compute/region
Your active configuration is: [default]
[compute]
region = us-east4
$ gcloud config list compute/zone
Your active configuration is: [default]
[compute]
zone = us-east4-b
如何将活动默认值更改为新设置的区域?我希望我的实例在美国东北海岸运行?
How does one change the active default to the new set zone? I would like my instance to run in the North East Coast of the USA?
谢谢,
推荐答案
在 Cloud Shell 中使用以下命令.
Use commands below at cloud shell.
要检查您的首选地区:
$ gcloud compute regions list
要更改计算区域,我选择 us-east4
区域:
To change compute regions, I select us-east4
region:
$ gcloud config set compute/region us-east4
更新了属性 [计算/区域].
Updated property [compute/region].
$ gcloud config list compute/region
[计算]
region = us-east4
以类似的方式,您可以更改计算/区域.
In a similar way, you can change compute/zone.
这篇关于如何更改 Google Cloud 中的区域/区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!