如何在 Google 云存储上 运行 编写脚本?
How to run script on Google Cloud Storage?
最近我正在使用Google云存储来存储一些文件。我已经使用 Cloud Storage Fuse 将其与 Google Compute Engine 中的实例一起安装。当我尝试在存储桶中 运行 我自己的脚本时,即使我使用 chmod a+x,它也不允许这样做。有什么方法可以授权吗?谢谢!
P.S.Below是我要的脚本运行
mkdir -p PB_report_0208/shortest_path
cp ./tag_1/shortest_path.csv ./PB_report_0208/shortest_path/shortest_path1.csv
根据 documentation,gcsfuse 不跟踪权限位,因此您的 chmod
命令没有执行任何操作。您可以使用 gcsfuse --file-mode
为所有文件提供执行位(但不是逐个文件)。
最近我正在使用Google云存储来存储一些文件。我已经使用 Cloud Storage Fuse 将其与 Google Compute Engine 中的实例一起安装。当我尝试在存储桶中 运行 我自己的脚本时,即使我使用 chmod a+x,它也不允许这样做。有什么方法可以授权吗?谢谢!
P.S.Below是我要的脚本运行
mkdir -p PB_report_0208/shortest_path
cp ./tag_1/shortest_path.csv ./PB_report_0208/shortest_path/shortest_path1.csv
根据 documentation,gcsfuse 不跟踪权限位,因此您的 chmod
命令没有执行任何操作。您可以使用 gcsfuse --file-mode
为所有文件提供执行位(但不是逐个文件)。