s3fs

挂载s3

1
s3fs Buckets /mountpoint -o passwd_file=/.passwd-s3fs -o url=https://ewr1.vultrobjects.com -o endpoint=US

.passwd-s3fs

1
2
3
4
5
Access Key:Secret Key

20sdM0BdegK5BHLR6TX8:L5cDmhwtNulRgYZ9gffdfghuhF3kAAofDNwUhLvE

chmod 600 /.passwd-s3fs

卸载

1
sudo umount /mountpoint

自动挂载

  • /etc/passwd-s3fs

    1
    2
    3
    20sdM0BdegK5BHLR6TX8: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 0
    1
    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
文章作者: Barry
文章链接: http://blog.purplelin.com/2021/04/19/s3fs/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Barry