wniu

服务器 挂载阿里云 oss

1.下载oss安装包

wget http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/32196/cn_zh/1507811577850/ossfs_1.80.3_centos7.0_x86_64.rpm

 

2. 安装

sudo yum localinstall ossfs_1.80.3_centos7.0_x86_64.rpm

 

3.设置bucket name 和 AccessKeyId/Secret信息,将其存放在/etc/passwd-ossfs 文件中

echo my-bucket:my-access-key-id:my-access-key-secret > /etc/passwd-ossfs

 

4.chmod 640 /etc/passwd-ossfs

 

5.将OSS bucket mount到指定挂载程序目录。

ossfs my-bucket my-mount-point -ourl=my-oss-endpoint

posted on 2018-04-24 10:39  蜗牛叔叔·  阅读(976)  评论(0编辑  收藏  举报

分类:

技术点:

相关文章:

  • 2021-12-27
  • 2021-12-12
  • 2021-11-23
  • 2021-12-03
  • 2021-12-30
  • 2021-06-10
  • 2021-11-23
  • 2021-07-23
猜你喜欢
  • 2019-12-26
  • 2021-12-03
  • 2021-05-18
  • 2022-01-02
  • 2021-12-30
  • 2021-12-12
  • 2021-12-02
相关资源
相似解决方案