2019-09-28
Install †
CentOS6 †
libfuse(>=2.8.4) †
#sh(bash){{
wget https://github.com/libfuse/libfuse/archive/fuse_2_8_4.tar.gz
_archive=$(basename ${_})
tar zxf ${_archive}
cd "libfuse_${_archive//.tar.gz/}"
./makeconf.sh && ./configure && make
sudo make install
sudo sh -c "echo '/usr/local/lib' >> /etc/ld.so.conf.d/local.conf"
sudo ldconfig
sudo modprobe fuse
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}"
}}
参考にしたサイト:
s3fs †
#sh(bash){{
# 最新を入れる場合
#git clone https://github.com/s3fs-fuse/s3fs-fuse.git
#cd s3fs-fuse
# 1.81を入れる場合(バケット名にドットが入っている場合はこちら)
wget https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.81.tar.gz
tar zxf $(basename ${_})
cd s3fs-fuse-1.81
./autogen.sh && ./configure && make
sudo make install
}}
Usage †
#sh(bash){{
s3fs $BUCKET_NAME /path/to/mount_point -orw,use_cache=/tmp,uid=$(id -u),gid=$(id -g)
}}
Note †
S3のバケット名にドットが入っている場合には要注意:https://qiita.com/ninomiya-y/items/efeeacd95a5c7cf00ab8