我想通过将文件上传到我的网站 - example.com来验证我在Google Search Console中的网站,该网站托管在Google Cloud Compute Engine(Wordpress网站,部署了Google Cloud Launcher)。它必须作为example.com/123googlesearchconsoleexample.html放在网站上,但我无法通过Cloud Shell从Google云端存储分区上载。 有没有办法做到这一点?如何使用gcloud终端将文件从Google Cloud Storage转移到计算引擎实例?
我试图gcloud计算拷贝文件命令
gcloud compute copy-files gs://example/123googlesearchconsoleexample.html example-prd-vm:~/
,但它似乎并没有在浏览器中工作,这就是我想这样做(而不安装SDK)。 我得到的错误是:
(gcloud.compute.copy-files)当目标是远程时,所有源必须是本地文件。
鉴于您也在讨论想从浏览器中使用它,我不清楚您使用的是哪个终端。你在谈论云端Shell吗? –
是的,我正在谈论云端Shell。 –
好的,那是进步。我建议你澄清一下你的问题,并说明你在尝试运行'gcloud compute copy-files'时发生了什么。 (Cloud Shell应该已经安装了gcloud SDK,包括'gcloud'和'gsutil'命令。) –