在debian上安装 sing-box
[TOC]
官方一键安装脚本
Ctrl+C 复制 Ctrl+S 导出
curl -fsSL https://sing-box.app/install.sh | sh1 行
内部运行指令
Ctrl+C 复制 Ctrl+S 导出
/usr/bin/sing-box -D /var/lib/sing-box -C /etc/sing-box run1 行
- 配置文件路径
/etc/sing-box下的config.json(需要手动创建)
管理服务
| 操作 | 命令 |
|---|---|
| Enable | sudo systemctl enable sing-box |
| Disable | sudo systemctl disable sing-box |
| Start | sudo systemctl start sing-box |
| Stop | sudo systemctl stop sing-box |
| Kill | sudo systemctl kill sing-box |
| Restart | sudo systemctl restart sing-box |
| Logs | sudo journalctl -u sing-box --output cat -e |
| New Logs | sudo journalctl -u sing-box --output cat -f |