Update README.md

Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com>
This commit is contained in:
MINGERTAI 2022-10-20 10:12:28 +08:00 committed by GitHub
parent d828c61615
commit d90f72a99b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,16 +24,21 @@ https://github.com/SagerNet/SagerNet
### 安装
sing-box 需要 Golang 1.18.5 或更高版本
### 安装 Golang
```jaon
#### 安装 Golang
```
cd
curl -fsL https://raw.githubusercontent.com/jetsung/golang-install/main/install.sh | bash
source /root/.bashrc
```
### 安装最新的 sing-box 版本
#### 安装最新的 sing-box 版本
```
go install -v github.com/sagernet/sing-box/cmd/sing-box@latest
````
#### 自定义安装,具体方法看官方文档 https://sing-box.sagernet.org
```
例:
go install -v -tags "with_acme with_clash_api with_quic with_grpc with_wireguard with_ech with_utls with_gvisor with_shadowsocksr" github.com/sagernet/sing-box/cmd/sing-box@dev-next
```
## License