install
https://github.com/s3fs-fuse/s3fs-fuse
sudo yum install -y automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure
make
sudo make install
config
~/.passwd-s3fs 加入:$SPACES_KEY:$SPACES_SECRET 并把权限改为600
6NCLG56RSQ4OZFK5SPN7:SYufdu3hYvukyp7HHluydMQlaSJ2JuUO2TooJHQu9Wg
/etc/fuse.conf 打开:user_allow_other
mount
https://www.digitalocean.com/community/questions/mount-point-with-spaces
s3fs movie101 /mnt/movie101 -o url=https://sgp1.digitaloceanspaces.com -o allow_other -o use_cache=/tmp
unmount
fusermount -u [directory]
网友评论