mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-23 17:11:29 +00:00
922 B
922 B
依赖
- Linux & Systemd
- Git
- Go 1.18.5+
- C 编译器环境
安装
git clone https://github.com/SagerNet/sing-box
cd sing-box
./release/local/install.sh
Edit configuration file in /usr/local/etc/sing-box/config.json
./release/local/enable.sh
更新
./release/local/update.sh
其他命令
操作 | 命令 |
---|---|
启动 | 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 |
卸载 | ./release/local/uninstall.sh |