digital ocean如何掛載spaces

語言: CN / TW / HK

1. 安裝

地址:http://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 http://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure
make
sudo make install

2. 配置

~/.passwd-s3fs 加入:$SPACES_KEY:$SPACES_SECRET 並把許可權改為600
6NCLG56RSQ4OZFK5SPN7:SYufdu3hYvukyp7HHluydMQlaSJ2JuUO2TooJHQu9Wg
/etc/fuse.conf 開啟:user_allow_other

3. 掛載

http://www.digitalocean.com/community/questions/mount-point-with-spaces

s3fs movie101 /mnt/movie101 -o url=http://sgp1.digitaloceanspaces.com -o allow_other -o use_cache=/tmp

4. 解除安裝

fusermount -u [directory]