Update README.md

This commit is contained in:
RPRX 2020-12-27 12:53:39 +00:00 committed by GitHub
parent cb697085d1
commit daf009f157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 15 deletions

View File

@ -18,46 +18,48 @@ installed: /etc/systemd/system/xray.service
installed: /etc/systemd/system/xray@.service
```
## Usage
## Basic Usage
### Install & Upgrade Xray-core
**Install & Upgrade Xray-core and geodata with User nobody, but will NOT overwrite User in existing service files**
```
# bash <(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh) install
# bash <(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh) install
```
### Install & Upgrade Xray-core with user root
**Update geoip.dat and geosite.dat only**
```
# bash <(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh) install -u root
# bash <(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh) install-geodata
```
### Install & Upgrade Xray-core without .dat files
**Remove Xray, except json and logs**
```
# bash <(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh) install --without-geodata
# bash <(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh) remove
```
### Install & Update geoip.dat and geosite.dat only
## Advance
**Install & Upgrade Xray-core and geodata with User root, which will overwrite User in existing service files**
```
# bash <(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh) install-geodata
# bash <(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh) install -u root
```
### Remove Xray
**Install & Upgrade Xray-core without geodata**
```
# bash <(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh) remove --purge
# bash <(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh) install --without-geodata
```
### Remove Xray, except json and logs
**Remove Xray, include json and logs**
```
# bash <(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh) remove
# bash <(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh) remove --purge
```
### More useages
## More Usage
```
# bash <(curl -L https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh) help
# bash <(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh) help
```