gpt4 book ai didi

google-compute-engine - 为什么此 gcloud 计算副本文件会产生错误消息?

转载 作者:行者123 更新时间:2023-12-03 15:13:20 24 4
gpt4 key购买 nike

当我执行命令时

gcloud compute copy-files "C:\Users\fName lName\Desktop\testtext.txt" instancename:test.txt --zone europe-west1-a



我收到错误: "All sources must be local files when the destination is remote." .

谁能帮我弄清楚出了什么问题?

最佳答案

为了复制您指定的文件 testtext.txt,您需要在该文件所在的路径中并指定其名称,而不是复制路径。

示例:从您的命令行让我们假设您在此路径中:

C:\Users\fName lName\Desktop\



您的命令应如下所示:
gcloud compute copy-files --zone europe-west1-b testtext.txt instancename:/PATH_where_you_want_the_file

关于google-compute-engine - 为什么此 gcloud 计算副本文件会产生错误消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25742867/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com