1.通过minio分享的链接只能支持7天。

解决方案是设置对应的bucket 可通过路径直接访问。(必须通过minio client才能设置下载策略)

wget https://dl.min.io/client/mc/release/linux-amd64/mc  //下载minio client
chmod a+x mc
./mc config host add minio http://172.12.3.1:9999 admin passwd   //添加minio server
./mc  policy  set  download  minio/yourbucket  //设置需要开放下载的bucket, 注意需要带minio   
 
http://172.16.3.1:9999/yourbucket/test.png  //浏览器访问, 注意不需要带minio

 

相关文章:

  • 2021-12-15
  • 2021-04-09
  • 2021-08-27
  • 2022-12-23
  • 2021-10-18
  • 2021-05-11
  • 2021-12-31
  • 2022-02-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
相关资源
相似解决方案