如何在Google Cloud中更改地区/区域? [英] How to change Region / Zone in Google Cloud?

查看:709
本文介绍了如何在Google Cloud中更改地区/区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Google Cloud的新手.我能够建立一个wordpress网站并正在研究它.但是,看来我的虚拟机实例正在使用以下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?

谢谢, T

推荐答案

在云外壳上使用以下命令.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆