入门指南
安装
安装 Redis + RustFS 单机栈,或从源码构建 BrewFS。
前置条件
- Rust(通过 rustup 安装 stable 工具链)
- 单机安装脚本需要使用
systemd的 Linux - FUSE 3(
fusermount3)以及/dev/fuse访问权限 - 一个挂载目录和一个数据目录
BrewFS 当前仅支持在 Linux 上进行 FUSE 挂载;当前版本不支持将 macOS 或 Windows 作为挂载目标。
快速安装:Redis + RustFS
单机安装脚本会下载 BrewFS、Redis 与 RustFS,生成配置和三个 systemd 服务,初始化 对象存储 bucket,并挂载 BrewFS。
curl -fsSL https://raw.githubusercontent.com/brewfs/brewfs/main/scripts/install_brewfs_single_node.sh | sudo bash -s -- install安装后可检查:
sudo systemctl status brewfs.service brewfs-redis.service brewfs-rustfs.service
brewfs info /mnt/brewfs
cat /mnt/brewfs/.stats脚本还支持 status、restart、upgrade 与 uninstall。需要固定版本时,可以通过
sudo env 传入 BREWFS_VERSION:
curl -fsSL https://raw.githubusercontent.com/brewfs/brewfs/main/scripts/install_brewfs_single_node.sh \
| sudo env BREWFS_VERSION=v0.1.1 bash -s -- install从源码构建
git clone https://github.com/brewfs/brewfs
cd brewfs
cargo build --releaseRelease 二进制产物位于 target/release/ 下。文档中的示例统一使用
cargo run -p brewfs --,可以直接在源码目录中运行。

