mirror of https://github.com/XTLS/Xray-install
Replace github.com/xxx/raw with raw.githubusercontent.com
parent
0529a022f9
commit
3ec86275c7
18
README.md
18
README.md
|
@ -31,19 +31,19 @@ Notice: Xray will NOT log to `/var/log/xray/*.log` by default. Configure `"log"`
|
|||
**Install & Upgrade Xray-core and geodata with `User=nobody`, but will NOT overwrite `User` in existing service files**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install
|
||||
```
|
||||
|
||||
**Update geoip.dat and geosite.dat only**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install-geodata
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install-geodata
|
||||
```
|
||||
|
||||
**Remove Xray, except json and logs**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove
|
||||
```
|
||||
|
||||
## Advance
|
||||
|
@ -51,13 +51,13 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
|
|||
**Install & Upgrade Xray-core to a pre-release version**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --beta
|
||||
```
|
||||
|
||||
**Install & Upgrade Xray-core and geodata with `logrotate`, `$time` can be in the format of 12:34:56**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --logrotate $time
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --logrotate $time
|
||||
```
|
||||
|
||||
```
|
||||
|
@ -70,25 +70,25 @@ installed: /etc/logrotate.d/xray
|
|||
**Install & Upgrade Xray-core and geodata with `User=root`, which will overwrite `User` in existing service files**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install -u root
|
||||
```
|
||||
|
||||
**Install & Upgrade Xray-core without geodata**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --without-geodata
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --without-geodata
|
||||
```
|
||||
|
||||
**Remove Xray, include json and logs**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove --purge
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove --purge
|
||||
```
|
||||
|
||||
## More Usage
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ help
|
||||
```
|
||||
|
||||
## Stargazers over time
|
||||
|
|
|
@ -32,19 +32,19 @@
|
|||
**安装并升级 Xray-core 和地理数据,默认使用 `User=nobody`,但不会覆盖已有服务文件中的 `User` 设置**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install
|
||||
```
|
||||
|
||||
**仅更新 geoip.dat 和 geosite.dat**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install-geodata
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install-geodata
|
||||
```
|
||||
|
||||
**移除 Xray,但保留 json 配置文件和日志**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove
|
||||
```
|
||||
|
||||
## 高级用法
|
||||
|
@ -52,13 +52,13 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
|
|||
**安装并升级 Xray-core 到预发布版本**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --beta
|
||||
```
|
||||
|
||||
**安装并升级 Xray-core 和地理数据,并启用 `logrotate`,`$time` 可以是 12:34:56 格式的时间**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --logrotate $time
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --logrotate $time
|
||||
```
|
||||
|
||||
```
|
||||
|
@ -71,25 +71,25 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
|
|||
**安装并升级 Xray-core 和地理数据,使用 `User=root`,会覆盖已有服务文件中的 `User` 设置**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install -u root
|
||||
```
|
||||
|
||||
**安装并升级 Xray-core,但不包含地理数据**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --without-geodata
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --without-geodata
|
||||
```
|
||||
|
||||
**移除 Xray,包括 json 配置文件和日志**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove --purge
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove --purge
|
||||
```
|
||||
|
||||
## 更多用法
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ help
|
||||
```
|
||||
|
||||
## 星标趋势图
|
||||
|
|
|
@ -32,19 +32,19 @@
|
|||
**安裝並升級 Xray-core 和地理數據,預設使用 `User=nobody`,但不會覆蓋已有服務檔案中的 `User` 設定**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install
|
||||
```
|
||||
|
||||
**僅更新 geoip.dat 和 geosite.dat**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install-geodata
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install-geodata
|
||||
```
|
||||
|
||||
**移除 Xray,但保留 json 設定檔案和日誌**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove
|
||||
```
|
||||
|
||||
## 進階用法
|
||||
|
@ -52,13 +52,13 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
|
|||
**安裝並升級 Xray-core 到預發布版本**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --beta
|
||||
```
|
||||
|
||||
**安裝並升級 Xray-core 和地理數據,並啟用 `logrotate`,`$time` 可以是 12:34:56 格式的時間**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --logrotate $time
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --logrotate $time
|
||||
```
|
||||
|
||||
```
|
||||
|
@ -71,25 +71,25 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
|
|||
**安裝並升級 Xray-core 和地理數據,使用 `User=root`,會覆蓋已有服務檔案中的 `User` 設定**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install -u root
|
||||
```
|
||||
|
||||
**安裝並升級 Xray-core,但不包含地理數據**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --without-geodata
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ install --without-geodata
|
||||
```
|
||||
|
||||
**移除 Xray,包括 json 設定檔案和日誌**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove --purge
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ remove --purge
|
||||
```
|
||||
|
||||
## 更多用法
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help
|
||||
bash -c "$(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)" @ help
|
||||
```
|
||||
|
||||
## 星標趨勢圖
|
||||
|
|
|
@ -13,7 +13,7 @@ apk add curl
|
|||
#### Download Installation Script
|
||||
|
||||
```sh
|
||||
curl -O https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh
|
||||
curl -O https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh
|
||||
```
|
||||
|
||||
#### Run Installation Script
|
||||
|
|
|
@ -13,7 +13,7 @@ apk add curl
|
|||
#### 下载安装脚本
|
||||
|
||||
```sh
|
||||
curl -O https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh
|
||||
curl -O https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh
|
||||
```
|
||||
|
||||
#### 运行安装脚本
|
||||
|
|
|
@ -13,7 +13,7 @@ apk add curl
|
|||
#### 下載安裝腳本
|
||||
|
||||
```sh
|
||||
curl -O https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh
|
||||
curl -O https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/install-release.sh
|
||||
```
|
||||
|
||||
#### 執行安裝腳本
|
||||
|
|
|
@ -165,7 +165,7 @@ install_startup_service_file() {
|
|||
OPENRC='0'
|
||||
if [ ! -f '/etc/init.d/xray' ]; then
|
||||
mkdir "${TMP_DIRECTORY}init.d/"
|
||||
if ! curl -f -L -o "${TMP_DIRECTORY}init.d/xray" https://github.com/XTLS/Xray-install/raw/main/alpinelinux/init.d/xray -sS; then
|
||||
if ! curl -f -L -o "${TMP_DIRECTORY}init.d/xray" https://raw.githubusercontent.com/XTLS/Xray-install/main/alpinelinux/init.d/xray -sS; then
|
||||
echo 'error: Failed to start service file download! Please check your network or try again.'
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# https://github.com/XTLS/Xray-install
|
||||
|
||||
# The URL of the script is:
|
||||
# https://github.com/XTLS/Xray-install/raw/main/install-release.sh
|
||||
# https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh
|
||||
|
||||
# If the script executes incorrectly, go to:
|
||||
# https://github.com/XTLS/Xray-install/issues
|
||||
|
|
Loading…
Reference in New Issue