本地挂载 阿里云 oss

yum install automake gcc-c++ git libcurl-devel libxml2-devel make openssl-devel
wget https://codeload.github.com/libfuse/libfuse/zip/fuse_2_8_bugfix -O fuse_2_8_bugfix.zip
unzip fuse_2_8_bugfix.zip
cd libfuse-fuse_2_8_bugfix
./makeconf.sh
./configure –prefix=/usr/local/fuse
make
make install

export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/local/fuse/lib/pkgconfig
ldconfig
modprobe fuse
pkg-config –modversion fuse

git clone https://github.com/aliyun/ossfs.git
cd ossfs
./autogen.sh
./configure –prefix=/usr/local/ossfs
make
make install

echo bucket_name:app_id:app_key > /etc/passwd-ossfs
chmod 640 /etc/passwd-ossfs

ossfs bucket_name local_url -ourl=oss_url  -ouid=1000 -ogid=1000 -oumask=007 -o allow_other

ossfs#bucket_name local_url fuse _netdev,url=oss_url,-ouid=uid,-ogid=gid,-oumask=umask,allow_other 0 0