deepwzh的技术笔记
  • Golang
  • Python
  • Cpp
杂项
前端开发
  • 计算机网络
  • 操作系统
  • 数据库
云原生
Devops
AIGC
关于作者
  • Golang
  • Python
  • Cpp
杂项
前端开发
  • 计算机网络
  • 操作系统
  • 数据库
云原生
Devops
AIGC
关于作者
  • Devops
  • Tailscale
  • Clash
  • Certbot
  • Prometheus
  • Cloudflare SSL 完全模式配置指南
  • Gitlab

    • Gitlab
    • Release 功能
    • 流水线

      • 流水线
      • 组件
  • Jenkins

    • Jenkins
    • Node
  • 对象存储

    • 对象存储
    • web 工具
    • 常用工具
  • Github

    • Github
    • Pull Request
    • Fork
    • 加速
    • Github Action

      • Github Action
      • 触发方式
      • 缓存 Cache
  • Ioc基础设施即代码

    • Ioc 基础设施即代码
    • gitops
    • Terraform
    • Ansible

常用工具

s3fs-fuse 磁盘挂载

s3fs 用于将对象存储挂载到磁盘上

https://github.com/s3fs-fuse/s3fs-fuse

首先安装工具

sudo apt-get install s3fs

使用这个命令添加配置

echo "key:secert" > ~/.passwd-s3fs
chmod 600 ~/.passwd-s3fs

启动挂载(临时),如果要持久化,就需要修改/etc/fstab 文件了

s3fs tool /s3/tool -o passwd_file=${HOME}/.passwd-s3fs -o url=https://minio.example.org/ -o use_path_request_style -o dbglevel=info

可以使用 umount 直接取消挂载

umount /s3/tool
Prev
web 工具