一步一步学习sing-box搭建

安装sing-box
官方文档:https://sing-box.sagernet.org/
github项目
https://github.com/SagerNet/sing-box/releases

这里我选择稳定最新版1.8.8
https://github.com/SagerNet/sing-box/releases/tag/v1.8.8
因为用的do服务器ubuntu20.04,选择
file
下载sing-box:

wget https://github.com/SagerNet/sing-box/releases/download/v1.8.8/sing-box_1.8.8_linux_amd64.deb

file
file
安装sing-box:

dpkg -i sing-box_1.8.8_linux_amd64.deb

查看安装包内容:dpkg -c sing-box_1.8.8_linux_amd64.deb
file

修改配置文件:vim /etc/sing-box/config.json

查看sing-box状态:systemctl status sing-box.service

启动sing-box:systemctl start sing-box.service