Sing-box Server
https://sing-box.sagernet.org/installation/package-manager/#service-management
:material-book-multiple: Service Management
For Linux systems with [systemd][systemd], usually the installation already includes a sing-box service,
you can manage the service using the following command:
| Operation | Command |
|---|---|
| Enable | sudo systemctl enable sing-box |
| Disable | sudo systemctl disable sing-box |
| Start | sudo systemctl start sing-box |
| Stop | sudo systemctl stop sing-box |
| Kill | sudo systemctl kill sing-box |
| Restart | sudo systemctl restart sing-box |
| Logs | sudo journalctl -u sing-box --output cat -e |
| New Logs | sudo journalctl -u sing-box --output cat -f |
sing-box generate inbound hysteria2 –listen :443
–password $(openssl rand -hex 8)
–tls
–domain your.domain.com
–config /etc/sing-box/config.json
–print-client
version
1 | root@Ubuntu:~# sing-box version |
1 | { |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 世界尽头のWasteland!
评论