Ubuntu安装s3fs-fuse挂载Minio磁盘

sudo apt-get -y install gcc
sudo apt-get -y install build-essential
sudo apt-get -y install libfuse-dev
sudo apt-get -y install fuse-utils
sudo apt-get -y install libcurl4-openssl-dev
sudo apt-get -y install libxml2-dev
sudo apt-get -y install mime-support
sudo apt-get -y install autoconf automake libtool
sudo apt-get -y install libssl-dev
#git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd /usr/local/src/
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd /usr/local/src/s3fs-fuse
sudo ldconfig
sudo modprobe fuse
sudo pkg-config –modversion fuse
./autogen.sh
sudo ./configure
sudo make
sudo make install
sudo export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig/
echo “用户名:密码” /etc/.passwd-s3fs
chmod 600 /etc/.passwd-s3fs
# 挂载到交通训练服务器
mkdir -p /home/iss/HRNR/sim
sudo s3fs -o passwd_file=/etc/.passwd-s3fs -o url=http://x.x.x.x:9000 -o allow_other -o nonempty -o no_check_certificate -o use_path_request_style -o umask=000 bucket1 /home/files