mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31:30 +00:00
933 B
933 B
Requirements
- Linux & Systemd
- Git
- Go 1.18.5+
- C compiler environment
Install
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
Update
./release/local/update.sh
Other commands
Operation | Command |
---|---|
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 |
Uninstall | ./release/local/uninstall.sh |