跳转至

包管理器

手动安装

bash <(curl -fsSL https://sing-box.app/deb-install.sh)
bash <(curl -fsSL https://sing-box.app/rpm-install.sh)
bash <(curl -fsSL https://sing-box.app/arch-install.sh)

托管安装

类型 平台 链接 命令 活跃维护
AUR (Linux) Arch Linux sing-box ᴬᵁᴿ ? -S sing-box
nixpkgs (Linux) NixOS sing-box nix-env -iA nixos.sing-box
Homebrew macOS / Linux sing-box brew install sing-box
Alpine (Linux) Alpine sing-box apk add sing-box
类型 平台 链接 命令 活跃维护
Homebrew macOS / Linux sing-box brew install sing-box
类型 平台 链接 命令 活跃维护
Scoop Windows sing-box scoop install sing-box
Chocolatey Windows sing-box choco install sing-box
winget Windows sing-box winget install sing-box
类型 平台 链接 命令 活跃维护
Termux Android sing-box pkg add sing-box

服务管理

对于带有 systemd 的 Linux 系统,通常安装已经包含 sing-box 服务, 您可以使用以下命令管理服务:

行动 命令
启用 sudo systemctl enable sing-box
禁用 sudo systemctl disable sing-box
启动 sudo systemctl start sing-box
停止 sudo systemctl stop sing-box
强行停止 sudo systemctl kill sing-box
重新启动 sudo systemctl restart sing-box
查看日志 sudo journalctl -u sing-box --output cat -e
实时日志 sudo journalctl -u sing-box --output cat -f