0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
$ yum install automake gcc-c++ git libcurl-devel libxml2-devel fuse-devel make openssl-devel -y $ cd /byrd/tools/ $ git clone https://github.com/aliyun/ossfs.git $ cd ossfs $ ./autogen.sh $ ./configure $ make $ sudo make install $ wget http://gosspublic.alicdn.com/ossfs/ossfs_1.80.5_centos7.0_x86_64.rpm $ yum localinstall ossfs_1.80.5_centos7.0_x86_64.rpm $ /usr/local/bin/ossfs ossname-xxx /backup/logs -ourl=http://oss-cn-hangzhou.aliyuncs.com -o allow_other $ echo my-bucket:my-access-key-id:my-access-key-secret > /etc/passwd-ossfs $ chmod 640 /etc/passwd-ossfs $ cat /root/.ossutilconfig [Credentials] language=EN endpoint=http://oss-cn-hangzhou-internal.aliyuncs.com accessKeyID=xxxxxx accessKeySecret=xxxxxxx |
参考文档:
1:https://github.com/aliyun/ossfs/blob/master/README-CN.md SourceByrd's Weblog-https://note.t4x.org/basic/aliyun-ossfs-configure/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!