挂载s3
1 | s3fs Buckets /mountpoint -o passwd_file=/.passwd-s3fs -o url=https://ewr1.vultrobjects.com -o endpoint=US |
.passwd-s3fs
1 | Access Key:Secret Key |
卸载
1 | sudo umount /mountpoint |
自动挂载
/etc/passwd-s3fs
1
2
320sdM0BdegK5BHLR6TX8:L5cDmhwtNulRgYZ9gffdfghuhF3kAAofDNwUhLvE
chmod 600 /etc/passwd-s3fs/etc/fstab
1
2
3命令格式:s3fs#[S3存储桶名] [本地目录名] fuse _netdev,allow_other,endpoint=[区域名] 0 0
命令格式:s3fs#[S3存储桶名] [本地目录名] fuse allow_other,url=http://s3.cn-north-1.amazonaws.com.cn,endpoint=cn-north-1 0 01
2
3/usr/bin/s3fs#Buckets /mountpoint fuse _netdev,allow_other,endpoint=US 0 0
/usr/bin/s3fs#Buckets /mountpoint fuse _netdev,allow_other,url=https://ewr1.vultrobjects.com,endpoint=US 0 0