diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-05-29 16:37:03 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-29 16:37:03 +0300 |
| commit | 1f2eb2ca1ad8c64c2becd4f9449bb1aaf16f9885 (patch) | |
| tree | 8790e5a07c5ba2809a5da5acff6f22385c60d5c8 /README.md | |
| parent | de571a2da4a89d8058d6e7b5c11b1b53be581cf6 (diff) | |
Manual install & Upgrade , docker
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 35 |
1 files changed, 34 insertions, 1 deletions
@@ -71,13 +71,46 @@ Example: XUI_BIN_FOLDER="bin" XUI_DB_FOLDER="/etc/x-ui" go build main.go ``` +## Manual install & upgrade + +1. To download the latest version of the compressed package directly to your server, run the following command: + +```sh +wget https://github.com/MHSanaei/3x-ui/releases/latest/download/x-ui-linux-amd64.tar.gz +``` + +Note: If your server's CPU architecture is `arm64`, modify the URL by substituting `amd64` with your respective CPU architecture. + +2. Once the compressed package is downloaded, execute the following commands to install or upgrade x-ui: + +```sh +cd /root/ +rm -rf x-ui/ /usr/local/x-ui/ /usr/bin/x-ui +tar zxvf x-ui-linux-amd64.tar.gz +chmod +x x-ui/x-ui x-ui/bin/xray-linux-* x-ui/x-ui.sh +cp x-ui/x-ui.sh /usr/bin/x-ui +cp -f x-ui/x-ui.service /etc/systemd/system/ +mv x-ui/ /usr/local/ +systemctl daemon-reload +systemctl enable x-ui +systemctl restart x-ui +``` +Note: If your server's CPU architecture is `arm64`, modify the URL by substituting `amd64` in `tar zxvf x-ui-linux-amd64.tar.gz` with your respective CPU architecture. + # Install with Docker 1. Install Docker: ```sh bash <(curl -sSL https://get.docker.com) ``` -2. Run 3x-ui: +2. Clone the Project Repository: + + ```sh + git clone https://github.com/MHSanaei/3x-ui.git + cd 3x-ui + ``` + +3. Start the Service ```sh docker compose up -d |
