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` 查看实时日志。