mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
Update README.md
Co-Authored-By: Ho3ein <33454419+mhsanaei@users.noreply.github.com>
This commit is contained in:
64
README.md
64
README.md
@@ -43,10 +43,10 @@ bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.s
|
||||
|
||||
## Install Custom Version
|
||||
|
||||
**Step 1:** To install your desired version, add the version to the end of the installation command. e.g., ver `1.6.4`:
|
||||
**Step 1:** To install your desired version, add the version to the end of the installation command. e.g., ver `1.7.1`:
|
||||
|
||||
```sh
|
||||
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh) 1.6.4
|
||||
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh) 1.7.1
|
||||
```
|
||||
|
||||
## Manual Install & Upgrade
|
||||
@@ -56,15 +56,30 @@ bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.s
|
||||
|
||||
### Usage
|
||||
|
||||
**Step 1:** First download the latest compressed package from https://github.com/alireza0/x-ui/releases, generally choose Architecture `amd64`
|
||||
|
||||
**Step 2:** Then upload the compressed package to the server's `/root/` directory and login to the server with user `root`
|
||||
|
||||
> If your server CPU architecture is not `amd64` replace it with the appropriate architecture
|
||||
1. To download the latest version of the compressed package directly to your server, run the following command:
|
||||
|
||||
```sh
|
||||
ARCH=$(uname -m)
|
||||
[[ "${ARCH}" == "s390x" ]] && XUI_ARCH="s390x" || [[ "${ARCH}" == "aarch64" || "${ARCH}" == "arm64" ]] && XUI_ARCH="arm64" || XUI_ARCH="amd64"
|
||||
case "${ARCH}" in
|
||||
x86_64 | x64 | amd64) XUI_ARCH="amd64" ;;
|
||||
armv8* | armv8 | arm64 | aarch64) XUI_ARCH="arm64" ;;
|
||||
armv7* | armv7) XUI_ARCH="armv7" ;;
|
||||
*) XUI_ARCH="amd64" ;;
|
||||
esac
|
||||
|
||||
wget https://github.com/alireza0/x-ui/releases/latest/download/x-ui-linux-${XUI_ARCH}.tar.gz
|
||||
```
|
||||
|
||||
2. Once the compressed package is downloaded, execute the following commands to install or upgrade x-ui:
|
||||
|
||||
```sh
|
||||
ARCH=$(uname -m)
|
||||
case "${ARCH}" in
|
||||
x86_64 | x64 | amd64) XUI_ARCH="amd64" ;;
|
||||
armv8* | armv8 | arm64 | aarch64) XUI_ARCH="arm64" ;;
|
||||
armv7* | armv7) XUI_ARCH="armv7" ;;
|
||||
*) XUI_ARCH="amd64" ;;
|
||||
esac
|
||||
cd /root/
|
||||
rm x-ui/ /usr/local/x-ui/ /usr/bin/x-ui -rf
|
||||
tar zxvf x-ui-linux-${XUI_ARCH}.tar.gz
|
||||
@@ -92,7 +107,20 @@ systemctl restart x-ui
|
||||
curl -fsSL https://get.docker.com | sh
|
||||
```
|
||||
|
||||
**Step 2:** Install X-UI
|
||||
**Step 2:** Clone the Project Repository:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/alireza0/x-ui.git
|
||||
cd x-ui
|
||||
```
|
||||
|
||||
**Step 3:** Start the Service
|
||||
|
||||
```sh
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
OR
|
||||
|
||||
```shell
|
||||
mkdir x-ui && cd x-ui
|
||||
@@ -105,6 +133,24 @@ docker run -itd \
|
||||
alireza7/x-ui:latest
|
||||
```
|
||||
|
||||
update to latest version
|
||||
|
||||
```sh
|
||||
cd x-ui
|
||||
docker compose down
|
||||
docker compose pull x-ui
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
remove x-ui from docker
|
||||
|
||||
```sh
|
||||
docker stop x-ui
|
||||
docker rm x-ui
|
||||
cd --
|
||||
rm -r x-ui
|
||||
```
|
||||
|
||||
> Build your own image
|
||||
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user