Linux【2】-管理文件-5-linux常用下载命令--gsutil

gsutil 是一个Python应用,该应用可通过命令行访问 Cloud Storage,本文介绍linux下的安装。

一、安装

cd /software
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-367.0.0-linux-x86_64.tar.gz
tar zxvf google-cloud-sdk-367.0.0-linux-x86_64.tar.gz
cd google-cloud-sdk
./install.sh

二、用法

gsutil cp -r gs://covid19-hg-public/20210415/results/20210607 /data/

三、报错

报错1

This feature is enabled by default but requires that compiled crcmod be installed (see "gsutil help crcmod").

Downloading this composite object requires integrity checking with CRC32c,but your crcmod installation isn't using the module's C extension, so the hash computation will likely throttle download performance. For help installing the extension, please see "gsutil help crcmod".

解决办法:

curl -L -o crcmod.tar.gz "https://downloads.sourceforge.net/project/crcmod/crcmod/crcmod-1.7/crcmod-1.7.tar.gz" 
tar -xzf crcmod.tar.gz 
cd crcmod-1.7/ 
python setup.py install 
cd ..

参考资料

药企,独角兽,苏州。团队长期招人,感兴趣的都可以发邮件聊聊:tiehan@sina.cn
个人公众号,比较懒,很少更新,可以在上面提问题,如果回复不及时,可发邮件给我: tiehan@sina.cn