mirror of
https://github.com/XTLS/Xray-install.git
synced 2024-11-23 23:51:26 +00:00
Update README.md
This commit is contained in:
parent
cb697085d1
commit
daf009f157
32
README.md
32
README.md
|
@ -18,46 +18,48 @@ installed: /etc/systemd/system/xray.service
|
||||||
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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue