不支持OpenVZ架构.
1. 安装
$ sudo apt-get install python-pip |
### 2. 授权 生成授权网址:
$ gdfstool auth -u |
$ gdfstool auth -a /var/cache/gdfs.creds "4/WUsOa-Sm2RhgQtf9_NFAMMbRC.cj4LQYdXfshQV0ieZDAqA-C7ecwI" |
### 3. 挂载
$ sudo gdfs -o big_writes /var/cache/gdfs.creds /root/googledrive/ |
### 4. 解挂
$ umount -l /root/googledrive/ |
### 5. 登陆时自动挂载
$ vim /root/.profile |
mount | grep "${HOME}/googledrive" >/dev/null || sudo gdfs -o big_writes /var/cache/gdfs.creds "${HOME}/googledrive" |
扫描二维码,分享此文章