OSS 访问文件报错
You have no right to access this object because of bucket acl
<Error>
<Code>AccessDenied</Code>
<Message>You have no right to access this object because of bucket acl.</Message>
<RequestId>1243142342341243123123123</RequestId>
<HostId>ssssaa.oss-cn-xxxxx.aliyuncs.com</HostId>
</Error>
OSS的bucket 默认权限是 private
想要通过浏览器直接访问文件 需要开通权限是 public-read
在linux 服务器上可以使用命令行工具 ossutil
按照手册
https://help.aliyun.com/document_detail/120075.html
几个核心命令: stat, set-acl,
先查询 bucket的 acl 权限是什么
然后再去修改权限