Projects STRLCPY sing-box Files
🤬
main-next
ROOT /
docs /
linux-server-installation.md
38 lines | ISO-8859-1 | 994 bytes

Requirements

  • Linux & Systemd
  • Git
  • C compiler environment

Install

git clone https://github.com/SagerNet/sing-box
cd sing-box
./release/local/install_go.sh # skip if you have go1.19 already installed
./release/local/install.sh

Edit configuration file in /usr/local/etc/sing-box/config.json

./release/local/enable.sh

Update

./release/local/update.sh

Other commands

OperationCommand
Startsudo systemctl start sing-box
Stopsudo systemctl stop sing-box
Killsudo systemctl kill sing-box
Restartsudo systemctl restart sing-box
Logssudo journalctl -u sing-box --output cat -e
New Logssudo journalctl -u sing-box --output cat -f
Uninstall./release/local/uninstall.sh
Please wait...
Page is in error, reload to recover