Update documentation

This commit is contained in:
世界
2022-08-08 20:57:50 +08:00
parent 4067e0f25c
commit 55d9a0ef2f
10 changed files with 235 additions and 11 deletions

View File

@@ -0,0 +1,38 @@
# Requirements
* Linux & Systemd
* Git
* Go 1.18.5+
* C compiler environment
#### Install
```shell
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`
```shell
./release/local/enable.sh
```
#### Update
```shell
./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` |