Ubuntu 服务器/无桌面环境 sing-box 命令行配置指南

核心结论

无桌面 Linux 服务器可通过 `apt` 或官方二进制安装 `sing-box`,配合 `systemd` 守护进程长期稳定运行。

一、放置配置文件

将转换好的 `config.json` 放入 `/etc/sing-box/config.json`,并使用 `sing-box check -c /etc/sing-box/config.json` 验证语法正确性。

二、启动 systemd 服务

执行 `sudo systemctl enable --now sing-box` 即可开机自启,并通过 `journalctl -u sing-box -f` 查看实时日志。

若尚未选定服务商,可前往 机场综合排行榜 或 横向对比工具 查看 14 家收录品牌参数。