配置FlClash节点的步骤如下
5822369cdwAstrill加速器2026-08-31300
安装所需软件包: 使用包管理器安装 Flux 和 FlClash 相关的软件包:# 安装 Flux CLI sudo apt-get install flux # 安装 FlClash 和 Harpoon sudo apt-get install @fluxclash/flux @fluxclash/harpoon @fluxclash/harpoon-ui # 安装 Git 和 Make sudo apt-get install git make 初始化 Flux 项目: 初始化 Flux 并创建配置目录:flux init mkdir -p flux-config cd flux-config git clone https://github.com/flux-framework/flux-config.git 配置 Flux 文件: 打开 flux-config/flux.yml 并添加 FlClash 配置部分: # 内容示例 kind: Cluster clusterID: my-flux-cluster name: my-flux-cluster version: 0.. cleanup: false # 添加 FlClash 配置 kind: Service clusterID: my-flux-cluster name: flux-clash module: flux-clash args: ["--port", "8181", "--loglevel", "info"] scheduler: clone cleanup: false 创建 FlClash 工作目录: 创建并进入工作目录:mkdir -p flux-workspaces/flux-clash cd flux-workspaces/flux-clash 初始化 Harpoon 项目:harpoon init 安装 Harpoon UI: 使用给定的 URL 安装 Harpoon U...
-
安装所需软件包:
- 使用包管理器安装 Flux 和 FlClash 相关的软件包:
# 安装 Flux CLI sudo apt-get install flux # 安装 FlClash 和 Harpoon sudo apt-get install @fluxclash/flux @fluxclash/harpoon @fluxclash/harpoon-ui # 安装 Git 和 Make sudo apt-get install git make
- 使用包管理器安装 Flux 和 FlClash 相关的软件包:
-
初始化 Flux 项目:
- 初始化 Flux 并创建配置目录:
flux init mkdir -p flux-config cd flux-config git clone https://github.com/flux-framework/flux-config.git
- 初始化 Flux 并创建配置目录:
-
配置 Flux 文件:
-
打开
flux-config/flux.yml并添加 FlClash 配置部分:# 内容示例 kind: Cluster clusterID: my-flux-cluster name: my-flux-cluster version: 0.. cleanup: false # 添加 FlClash 配置 kind: Service clusterID: my-flux-cluster name: flux-clash module: flux-clash args: ["--port", "8181", "--loglevel", "info"] scheduler: clone cleanup: false
-
-
创建 FlClash 工作目录:
- 创建并进入工作目录:
mkdir -p flux-workspaces/flux-clash cd flux-workspaces/flux-clash
- 初始化 Harpoon 项目:
harpoon init
- 创建并进入工作目录:
-
安装 Harpoon UI:
- 使用给定的 URL 安装 Harpoon UI:
harpoon-ui install http://your-flux-clash-server:8181
- 使用给定的 URL 安装 Harpoon UI:
-
编译 Harpoon(可选):
- 如果需要自定义 Harpoon:
cd harpoon make install # 或者(全局安装) make install global
- 如果需要自定义 Harpoon:
-
启动 FlClash 服务:
- 使用 Flux CLI 启动 FlClash 服务:
flux serve --add-service flux-clash --port 8181 --loglevel info
- 使用 Flux CLI 启动 FlClash 服务:
通过以上步骤,你已经成功配置了一个 FlClash 节点,可以根据需要修改配置以满足特定场景。

相关文章








