==================== **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 文件操作 ================= 列出桶中的所有文件 --------------------- - ls - 如果是在有图形界面的操作系统中,可以直接进入到该桶中,里面的对象都会列举出来 增加对象 ----------------------- - copy srcfile destfile - 在图形化界面中可以复制数据到桶中即可 .. attention:: 如果出现权限拒绝,需要sudo启动s3fs,也需要sudo访问s3fs 删除文件 ----------------- rm fileName 修改文件名 ----------------- mv oldfilename newfilename