1、安装依赖
yum -y install gcc gcc-c++ python-devel libxslt-devel libffi-devel openssl-devel fuse fuse-devel
2、安装Google API
git clone https://github.com/google/google-api-python-client
cd google-api-python-client
python setup.py install
python setup.py install_egg_info
3、安装GDriveFS及依赖
pip install gdrivefs
pip install oauth2client
4、登录GDriveFS及授权
gdfstool auth -u
将显示的 URL 在浏览器中访问,得到授权码XXX
gdfstool auth -a /var/cache/gdfs.creds XXX
5、挂载GDriveFS
mkdir /mnt/gdrivefs
gdfstool mount /var/cache/gdfs.creds /mnt/gdrivefs
6、卸载GDriveFS
fusermoun -qzu /mnt/gdrivefs