mirror of https://github.com/XTLS/Xray-install
README.md: Add Chinese translations
parent
6ece7f9495
commit
50ebb27f78
|
@ -1,5 +1,7 @@
|
|||
# Xray-install
|
||||
|
||||
English | [简体中文](README_zh-Hans.md) | [繁體中文](README_zh-Hant.md)
|
||||
|
||||
Bash script for installing Xray in operating systems such as CentOS / Debian / OpenSUSE that support systemd.
|
||||
|
||||
[Filesystem Hierarchy Standard (FHS)](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)
|
||||
|
@ -53,6 +55,7 @@ bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release
|
|||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --logrotate $time
|
||||
```
|
||||
|
||||
```
|
||||
installed: /etc/systemd/system/logrotate@.service
|
||||
installed: /etc/systemd/system/logrotate@.timer
|
||||
|
|
|
@ -0,0 +1,93 @@
|
|||
# Xray-install
|
||||
|
||||
English | [简体中文](README_zh-Hans.md) | [繁體中文](README_zh-Hant.md)
|
||||
|
||||
用于在支持 systemd 的操作系统(如 CentOS / Debian / OpenSUSE)中安装 Xray 的 Bash 脚本。
|
||||
|
||||
[文件系统层次结构标准 (FHS)](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)
|
||||
|
||||
```
|
||||
已安装文件:
|
||||
- /etc/systemd/system/xray.service
|
||||
- /etc/systemd/system/xray@.service
|
||||
|
||||
- /usr/local/bin/xray
|
||||
- /usr/local/etc/xray/*.json
|
||||
|
||||
- /usr/local/share/xray/geoip.dat
|
||||
- /usr/local/share/xray/geosite.dat
|
||||
|
||||
- /var/log/xray/access.log
|
||||
- /var/log/xray/error.log
|
||||
```
|
||||
|
||||
注意:Xray 默认不会将日志记录到 `/var/log/xray/*.log`。请配置 `"log"` 来指定日志文件。
|
||||
|
||||
## 基本用法
|
||||
|
||||
**安装并升级 Xray-core 和地理数据,默认使用 `User=nobody`,但不会覆盖已有服务文件中的 `User` 设置**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/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
|
||||
```
|
||||
|
||||
**移除 Xray,但保留 json 配置文件和日志**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove
|
||||
```
|
||||
|
||||
## 高级用法
|
||||
|
||||
**安装并升级 Xray-core 到预发布版本**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/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
|
||||
```
|
||||
|
||||
```
|
||||
已安装文件:
|
||||
- /etc/systemd/system/logrotate@.service
|
||||
- /etc/systemd/system/logrotate@.timer
|
||||
- /etc/logrotate.d/xray
|
||||
```
|
||||
|
||||
**安装并升级 Xray-core 和地理数据,使用 `User=root`,会覆盖已有服务文件中的 `User` 设置**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/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
|
||||
```
|
||||
|
||||
**移除 Xray,包括 json 配置文件和日志**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove --purge
|
||||
```
|
||||
|
||||
## 更多用法
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help
|
||||
```
|
||||
|
||||
## 星标趋势图
|
||||
|
||||
[](https://starchart.cc/XTLS/Xray-install)
|
|
@ -0,0 +1,93 @@
|
|||
# Xray-install
|
||||
|
||||
English | [简体中文](README_zh-Hans.md) | [繁體中文](README_zh-Hant.md)
|
||||
|
||||
用於在支持 systemd 的作業系統(如 CentOS / Debian / OpenSUSE)中安裝 Xray 的 Bash 腳本。
|
||||
|
||||
[檔案系統層次結構標準 (FHS)](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)
|
||||
|
||||
```
|
||||
已安裝檔案:
|
||||
- /etc/systemd/system/xray.service
|
||||
- /etc/systemd/system/xray@.service
|
||||
|
||||
- /usr/local/bin/xray
|
||||
- /usr/local/etc/xray/*.json
|
||||
|
||||
- /usr/local/share/xray/geoip.dat
|
||||
- /usr/local/share/xray/geosite.dat
|
||||
|
||||
- /var/log/xray/access.log
|
||||
- /var/log/xray/error.log
|
||||
```
|
||||
|
||||
注意:Xray 預設不會將日誌記錄到 `/var/log/xray/*.log`。請配置 `"log"` 來指定日誌檔案。
|
||||
|
||||
## 基本用法
|
||||
|
||||
**安裝並升級 Xray-core 和地理數據,預設使用 `User=nobody`,但不會覆蓋已有服務檔案中的 `User` 設定**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/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
|
||||
```
|
||||
|
||||
**移除 Xray,但保留 json 設定檔案和日誌**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove
|
||||
```
|
||||
|
||||
## 進階用法
|
||||
|
||||
**安裝並升級 Xray-core 到預發布版本**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/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
|
||||
```
|
||||
|
||||
```
|
||||
已安裝檔案:
|
||||
- /etc/systemd/system/logrotate@.service
|
||||
- /etc/systemd/system/logrotate@.timer
|
||||
- /etc/logrotate.d/xray
|
||||
```
|
||||
|
||||
**安裝並升級 Xray-core 和地理數據,使用 `User=root`,會覆蓋已有服務檔案中的 `User` 設定**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/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
|
||||
```
|
||||
|
||||
**移除 Xray,包括 json 設定檔案和日誌**
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove --purge
|
||||
```
|
||||
|
||||
## 更多用法
|
||||
|
||||
```
|
||||
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help
|
||||
```
|
||||
|
||||
## 星標趨勢圖
|
||||
|
||||
[](https://starchart.cc/XTLS/Xray-install)
|
Loading…
Reference in New Issue