Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 如何使用gcloud compute scp?_Google Cloud Platform_Google Cloud Storage_Google Compute Engine_Google Cloud Functions - Fatal编程技术网

Google cloud platform 如何使用gcloud compute scp?

Google cloud platform 如何使用gcloud compute scp?,google-cloud-platform,google-cloud-storage,google-compute-engine,google-cloud-functions,Google Cloud Platform,Google Cloud Storage,Google Compute Engine,Google Cloud Functions,我想下载这个文件 到我的电脑,但我不懂命令 gcloud compute scp --recurse [INSTANCE_NAME]:[REMOTE_DIR] [LOCAL_DIR] 实例是我的文件名 来自 [INSTANCE_NAME]是指要将文件传输到的目标实例的名称。以下示例取自上述参考资料 要从示例实例复制远程目录~/narnia 要访问本地主机的~/campor目录,请运行: 编辑: 在仔细查看您的图像后,看起来您正在尝试从云存储复制文件?如果要从云存储桶复制文件,则需要使用cli工

我想下载这个文件

到我的电脑,但我不懂命令

gcloud compute scp --recurse [INSTANCE_NAME]:[REMOTE_DIR] [LOCAL_DIR]
实例是我的文件名

来自

[INSTANCE_NAME]是指要将文件传输到的目标实例的名称。以下示例取自上述参考资料

要从示例实例复制远程目录~/narnia 要访问本地主机的~/campor目录,请运行:

编辑:

在仔细查看您的图像后,看起来您正在尝试从云存储复制文件?如果要从云存储桶复制文件,则需要使用cli工具。要从目录复制文件,需要使用gsutil cp命令

有关更多信息和示例,请参见以下内容:

$ gcloud compute scp --recurse example-instance:~/narnia ~/wardrobe