S3FS使用手册¶
安装¶
1.Linux
On Ubuntu 14.04:
sudo apt-get install automake autotools-dev fuse g++ git libcurl4-gnutls-dev libfuse-dev libssl-dev libxml2-dev make pkg-config
On CentOS 7:
sudo yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel
Then compile from master via the following commands:
- git clone https://github.com/s3fs-fuse/s3fs-fuse.git
- cd s3fs-fuse
- ./autogen.sh
- ./configure
- make
- sudo make install
2.On Mac OS X
- $ brew cask install osxfuse
- $ brew install s3fs
挂载¶
1.写配置文件
- echo ak:sk > .passwd
- chmod 400 .passwd
2.挂载
- 不开debug : s3fs bucketName moutpoint -o passwd_file=/pathto/.passwd -o url=http://nos-eastchina1.126.net
- 开启debug : s3fs bucketName moutpoint -o passwd_file=/pathto/.passwd -o url=http://nos-eastchina1.126.net -d -d -f -o f2 -o curldbg