Debian bash <(curl -fsSL https://sing-box.app/deb-install.sh) Redhat bash <(curl -fsSL https://sing-box.app/rpm-install.sh) Archlinux bash <(curl -fsSL https://sing-box.app/arch-install.sh)
默认的配置文件在路径 /etc/sing-box/config.json 下,运行文件在/usr/local/etc/sing-box/config.json 下。
/etc/sing-box/config.json
/usr/local/etc/sing-box/config.json
sing-box generate uuid
sing-box generate reality-keypair
sing-box generate rand --hex 8
sudo systemctl start sing-box
sudo systemctl stop sing-box
sudo systemctl status sing-box
标准链接示例(更改所有<>)
vless://<UUID>@<IP>:<端口>?security=reality&sni=<域名>&fp=<utls浏览器指纹>&pbk=<公钥>&sid=<你的ShortID>&spx=/&type=tcp&flow=xtls-rprx-vision&encryption=none#<随意填写名称>
编写完成后即可导入一个客户端,开始使用!
如果你想使用原生singbox客户端,参考这里,即单节点配置.