Shell GPL-3.0

Xray-install

Easiest way to install & upgrade Xray

X

XTLS

Dernière activité 18 janv. 2026
XTLS/Xray-install

3,6 k

étoiles

655

forks

36

issues ouvertes

vlessxrayxtls

Ce README est souvent en anglais.

Xray-install

English | 简体中文 | 繁體中文

Bash script for installing Xray in operating systems such as CentOS / Debian / OpenSUSE that support systemd.

For Alpine or Gentoo Linux users, please refer to OpenRC Specific Instructions for installation scripts and guides tailored for Alpine/Gentoo Linux featured by OpenRC init-system.


installed: /etc/systemd/system/xray.service
installed: /etc/systemd/system/xray@.service

installed: /usr/local/bin/xray
installed: /usr/local/etc/xray/*.json

installed: /usr/local/share/xray/geoip.dat
installed: /usr/local/share/xray/geosite.dat

installed: /var/log/xray/access.log
installed: /var/log/xray/error.log

Notice: Xray will NOT log to /var/log/xray/*.log by default. Configure "log" to specify log files.

Basic Usage

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

Update geoip.dat and geosite.dat only

bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/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

Advance

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

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
installed: /etc/systemd/system/logrotate@.service
installed: /etc/systemd/system/logrotate@.timer

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

Install & Upgrade Xray-core without geodata

bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/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

More Usage

bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ help

Stargazers over time

Stargazers over time

Projets similaires

Xray 基于 Nginx 的 VLESS + XTLS 一键安装脚本

Shellnginxtlsv2ray
Wwulabing
9,3 k étoiles3,5 k

Some examples of uses for Xray-core

Shellvlessxrayxtls
XXTLS
3,9 k étoiles939

最好用的 Xray 一键安装脚本 & 管理脚本

Shellxray
2233boy
2,7 k étoiles1,1 k