Projects STRLCPY sing-box Files
🤬
b76fabee
ROOT /
docs /
from-source.zh.md
39 lines | UTF-8 | 5 KB

从源代码安装

sing-box 需要 Golang 1.18.5 或更高版本。

go install -v github.com/sagernet/sing-box/cmd/sing-box@latest

自定义安装:

go install -v -tags with_clash_api github.com/sagernet/sing-box/cmd/sing-box@latest
构建标志描述
with_quic启用 QUIC 支持,参阅 QUIC 和 HTTP3 DNS 传输层Naive 入站Hysteria 入站Hysteria 出站V2Ray 传输层#QUIC
with_grpc启用标准 gRPC 支持,参阅 V2Ray 传输层#gRPC
with_dhcp启用 DHCP 支持,参阅 DHCP DNS 传输层
with_wireguard启用 WireGuard 支持,参阅 WireGuard 出站
with_shadowsocksr启用 ShadowsocksR 支持,参阅 ShadowsocksR 出站
with_ech启用 TLS ECH 扩展支持,参阅 TLS
with_utls启用 uTLS 支持,参阅 TLS
with_reality_server启用 reality TLS 服务器支持,参阅 TLS
with_acme启用 ACME TLS 证书签发支持,参阅 TLS
with_clash_api启用 Clash API 支持,参阅 实验性
with_v2ray_api启用 V2Ray API 支持,参阅 实验性
with_gvisor启用 gVisor 支持,参阅 Tun 入站WireGuard 出站
with_embedded_tor (需要 CGO)启用 嵌入式 Tor 支持,参阅 Tor 出站
with_lwip (需要 CGO)启用 LWIP Tun 栈支持,参阅 Tun 入站

二进制文件将被构建在 $GOPATH/bin 下。

sing-box version

同时推荐使用 systemd 来管理 sing-box 服务器实例。 参阅 Linux 服务器安装示例

Please wait...
Page is in error, reload to recover