Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHo3ein <ho3ein.sanaei@gmail.com>2023-05-29 16:37:03 +0300
committerGitHub <noreply@github.com>2023-05-29 16:37:03 +0300
commit1f2eb2ca1ad8c64c2becd4f9449bb1aaf16f9885 (patch)
tree8790e5a07c5ba2809a5da5acff6f22385c60d5c8 /README.md
parentde571a2da4a89d8058d6e7b5c11b1b53be581cf6 (diff)
Manual install & Upgrade , docker
Diffstat (limited to 'README.md')
-rw-r--r--README.md35
1 files changed, 34 insertions, 1 deletions
diff --git a/README.md b/README.md
index ceb10bc3..1434ca53 100644
--- a/README.md
+++ b/README.md
@@ -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