在服务器上用 sing-box + Clash 订阅,搭了一个本机 HTTP/SOCKS 代理,并做成 systemd 服务自动启动。 效果: sing-box 以 systemd 服务形式常驻运行; 它用你的 vmess 节点 出口翻墙; 服务器上任何程序(curl / git / apt / pip…) 只要设代理到 http://127.0.0.1:7890 就能翻。 ⸻
二、我们是怎么一步步找问题、解决问题的? 按时间线回顾一下关键节点:
- 放二进制 + 找到正确路径 你把 sing-box 可执行文件放到: /usr/local/bin/sing-box 用 ls /usr/local/bin 确认里面确实有 sing-box,并确保: chmod +x /usr/local/bin/sing-box 👉 这一步解决的是:“系统到底去哪儿找 sing-box”。 ⸻
- systemd 服务找不到 / 不工作
一开始:
Failed to restart sing-box.service: Unit sing-box.service not found.
说明:根本还没有服务文件。
我们做的事是:
- 写一个 /etc/systemd/system/sing-box.service:


