github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/docs/examples/linux-server-installation.md (about)

     1  #### Requirements
     2  
     3  * Linux & Systemd
     4  * Git
     5  * C compiler environment
     6  
     7  #### Install
     8  
     9  ```shell
    10  git clone -b main https://github.com/SagerNet/sing-box
    11  cd sing-box
    12  ./release/local/install_go.sh # skip if you have golang already installed
    13  ./release/local/install.sh
    14  ```
    15  
    16  Edit configuration file in `/usr/local/etc/sing-box/config.json`
    17  
    18  ```shell
    19  ./release/local/enable.sh
    20  ```
    21  
    22  #### Update
    23  
    24  ```shell
    25  ./release/local/update.sh
    26  ```
    27  
    28  #### Other commands
    29  
    30  | Operation | Command                                       |
    31  |-----------|-----------------------------------------------|
    32  | Start     | `sudo systemctl start sing-box`               |
    33  | Stop      | `sudo systemctl stop sing-box`                |
    34  | Kill      | `sudo systemctl kill sing-box`                |
    35  | Restart   | `sudo systemctl restart sing-box`             |
    36  | Logs      | `sudo journalctl -u sing-box --output cat -e` |
    37  | New Logs  | `sudo journalctl -u sing-box --output cat -f` |
    38  | Uninstall | `./release/local/uninstall.sh`                |