跳转到主要内容

Linux 应用

Gateway 网关在 Linux 上完全支持。Node 是推荐的运行时。 不推荐 Bun 用于 Gateway 网关(WhatsApp/Telegram 存在 bug)。 原生 Linux 配套应用已在计划中。如果你想帮助构建,欢迎贡献。

新手快速路径(VPS)

  1. git clone https://github.com/fased-ai/fased.git fased
  2. cd fased
  3. 如果这是远程主机,先加入 Tailscale
  4. ./install.sh --hosting
  5. 从你的笔记本电脑:ssh -N -L 18789:127.0.0.1:18789 <user>@<host>
  6. 打开 http://127.0.0.1:18789/ 并粘贴你的令牌
本地 Linux 笔记本/开发机可以使用普通的 ./install.sh./install.sh --local。除非传入 --no-onboard,安装器会运行新手引导。 分步 VPS 指南:Hetzner 或通用的 VPS 托管 中心。

安装

Gateway 网关

Gateway 网关服务安装(CLI)

使用以下任一方式:
fased onboard --install-daemon
或:
fased gateway install
或:
fased configure
出现提示时选择 Gateway service 修复/迁移:
fased doctor

系统控制(systemd 用户单元)

Fased 默认安装 systemd 用户服务。对于共享或常驻服务器使用系统 服务。完整的单元示例和指南 在 Gateway 网关运行手册 中。 最小设置: 创建 ~/.config/systemd/user/fased-gateway[-<profile>].service
[Unit]
Description=Fased Gateway (profile: <profile>, v<version>)
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/local/bin/fased gateway --port 18789
Restart=always
RestartSec=5

[Install]
WantedBy=default.target
启用它:
systemctl --user enable --now fased-gateway[-<profile>].service