mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-22 22:38:05 +03:00
169 lines
8.0 KiB
Markdown
169 lines
8.0 KiB
Markdown
# Download and Install
|
|
|
|
## Platform Support
|
|
|
|
Xray is available on the following platforms:
|
|
|
|
- Windows 7 and later (x86 / amd64 / arm32 / arm64);
|
|
- To use regular versions 1.8.4, 1.8.6, and `win7` versions after 1.8.18 on Windows 7, the system must have the **KB4474419** update installed; it is recommended to also install KB4490628 to receive subsequent operating system security updates after connecting to the internet.
|
|
- Starting from v25, running the `win7` version on Windows 7 only requires SP1 to function normally, but installing subsequent OS security updates is still strongly recommended for networked systems.
|
|
- macOS 10.10 Yosemite and later (amd64 / arm64);
|
|
- Linux 2.6.23 and later (x86 / amd64 / arm / arm64 / mips64 / mips / ppc64 / s390x / riscv64);
|
|
- Including but not limited to Debian 7 / 8, Ubuntu 12.04 / 14.04 and later, CentOS 7 / 8, Arch Linux, etc.;
|
|
- FreeBSD (x86 / amd64);
|
|
- OpenBSD (x86 / amd64);
|
|
|
|
## Download Xray
|
|
|
|
Pre-compiled binary ZIP archives can be found in [Github Releases](https://github.com/xtls/Xray-core/releases).
|
|
|
|
Download the archive for your platform, extract it, and it is ready to use.
|
|
|
|
## Verify Installation Packages
|
|
|
|
Xray provides two verification methods:
|
|
|
|
- SHA1 / SHA256 digests of the ZIP archive.
|
|
- Reproducible Builds: Please refer to [Compiling Xray](../development/intro/compile.md).
|
|
|
|
## Windows Installation
|
|
|
|
- Download the ZIP archive for the Windows platform from [Github Releases](https://github.com/xtls/Xray-core/releases). After extraction, you will get the executable file `xray.exe`. You can then [run it via the command line with parameters](./command).
|
|
- Install via [Scoop](https://scoop.sh) package manager: Xray has been added to [Mochi](https://github.com/Qv2ray/mochi).
|
|
|
|
## macOS Installation
|
|
|
|
- Download the ZIP archive for the macOS platform from [Github Releases](https://github.com/xtls/Xray-core/releases). After extraction, you will get the executable file `xray`. You can then [run it via the command line with parameters](./command.md).
|
|
- Install via [Homebrew](https://brew.sh) package manager: `brew install xray`
|
|
- [homebrew-xray](https://github.com/N4FA/homebrew-xray) thanks to [@N4FA](https://github.com/N4FA).
|
|
|
|
## Linux Installation
|
|
|
|
### Installation Scripts
|
|
|
|
- Linux Script
|
|
- [XTLS/Xray-install](https://github.com/XTLS/Xray-install) (**Official Script**)
|
|
- [tempest](https://github.com/team-cloudchaser/tempest) (Supports [`systemd`](https://systemd.io) and [OpenRC](https://github.com/OpenRC/openrc); Linux only)
|
|
|
|
- One Click
|
|
- [Xray-REALITY](https://github.com/zxcvos/Xray-script), [xray-reality](https://github.com/sajjaddg/xray-reality), [reality-ezpz](https://github.com/aleskxyz/reality-ezpz)
|
|
- [Xray_bash_onekey](https://github.com/hello-yunshu/Xray_bash_onekey), [XTool](https://github.com/LordPenguin666/XTool)
|
|
- [v2ray-agent](https://github.com/mack-a/v2ray-agent), [Xray_onekey](https://github.com/wulabing/Xray_onekey), [ProxySU](https://github.com/proxysu/ProxySU)
|
|
|
|
- Magisk
|
|
- [Xray4Magisk](https://github.com/Asterisk4Magisk/Xray4Magisk)
|
|
- [Xray_For_Magisk](https://github.com/E7KMbb/Xray_For_Magisk)
|
|
|
|
### Arch Linux
|
|
|
|
#### Arch User Repository
|
|
|
|
Requires [AUR helpers](https://wiki.archlinux.org/index.php/AUR_helpers). Taking [yay](https://github.com/Jguer/yay) as an example, you can install via `yay -S xray`.
|
|
|
|
#### Arch Linux CN
|
|
|
|
First add the [Arch Linux CN repository](https://www.archlinuxcn.org/archlinux-cn-repo-and-mirror/), then install using `pacman -S xray` under the root user.
|
|
|
|
### Linuxbrew
|
|
|
|
The usage of the Linuxbrew package manager is consistent with Homebrew: `brew install xray`
|
|
|
|
### Debian <Badge text="WIP" type="warning"/>
|
|
|
|
### Gentoo
|
|
|
|
Currently, three third-party Overlays provide Portage installation scripts:
|
|
|
|
- [CHN-beta/touchfish-os](https://github.com/gentoo-mirror/touchfish-os/tree/master/net-proxy/Xray): Personally maintained, suitable for systemD systems.
|
|
- [Gentoo-zh](https://github.com/microcai/gentoo-zh): Community maintained, suitable for systemD systems.
|
|
- [JuanCldCmt/Xray-Overlay](https://github.com/JuanCldCmt/Xray-Overlay): Personally maintained, suitable for openRC systems; runs with the xray user group to improve security.
|
|
|
|
Use layman or eselect-repository to add the Overlay locally, then install.
|
|
|
|
## Docker Installation
|
|
|
|
Currently, two different styles of Docker images are provided:
|
|
|
|
- [teddysun/xray](https://hub.docker.com/r/teddysun/xray): Has root privileges, has shell environment, compatible with all Alpine-supported architectures. Compiled and built by private server dl.lamp.sh. More convenient to use.
|
|
- [ghcr.io/xtls/xray-core](https://ghcr.io/xtls/xray-core): No root privileges, no shell environment, supports more architectures. Compiled and built by the official repository supporting traceability. Sacrifices convenience for more extreme security.
|
|
|
|
### Docker Image File Structure
|
|
|
|
teddysun/xray version image:
|
|
|
|
- `/usr/bin/xray`: Xray main program
|
|
- `/etc/xray/config.json`: Single configuration file (its directory is a mount point)
|
|
- `/usr/share/xray/`: Resource file directory, stores v2fly version geolocation data files
|
|
- geoip.dat
|
|
- geosite.dat
|
|
|
|
ghcr.io/xtls/xray-core version image:
|
|
|
|
- `/usr/local/bin/xray`: Xray main program (Owner is root:root, file permissions 755)
|
|
- `/usr/local/etc/xray/`: Configuration file directory (Mount point) (Owner is root:root, directory permissions 755, file permissions 644)
|
|
- 00_log.json
|
|
- 01_api.json
|
|
- 02_dns.json
|
|
- 03_routing.json
|
|
- 04_policy.json
|
|
- 05_inbounds.json
|
|
- 06_outbounds.json
|
|
- 07_stats.json
|
|
- 08_fakedns.json
|
|
- 09_metrics.json
|
|
- 10_observatory.json
|
|
- 11_geodata.json
|
|
- 99_version.json
|
|
- `/usr/local/share/xray/`: Resource file directory, stores Loyalsoldier version geolocation data files (Permissions same as above)
|
|
- geoip.dat
|
|
- geosite.dat
|
|
- `/var/log/xray/`: Log file directory (Mount point) (Directory owner is root:root, permissions 755; File owner is 65532:65532, permissions 600)
|
|
- access.log
|
|
- error.log
|
|
|
|
# Graphical Clients
|
|
|
|
- OpenWrt
|
|
- [PassWall](https://github.com/xiaorouji/openwrt-passwall), [PassWall 2](https://github.com/xiaorouji/openwrt-passwall2)
|
|
- [ShadowSocksR Plus+](https://github.com/fw876/helloworld)
|
|
- [luci-app-xray](https://github.com/yichya/luci-app-xray) ([openwrt-xray](https://github.com/yichya/openwrt-xray))
|
|
- Asuswrt-Merlin
|
|
- [XRAYUI](https://github.com/DanielLavrushin/asuswrt-merlin-xrayui)
|
|
- Windows
|
|
- [v2rayA](https://github.com/v2rayA/v2rayA)
|
|
- [v2rayN](https://github.com/2dust/v2rayN)
|
|
- [Furious](https://github.com/LorenEteval/Furious)
|
|
- [Invisible Man - Xray](https://github.com/InvisibleManVPN/InvisibleMan-XRayClient)
|
|
- [AnyPortal](https://github.com/AnyPortal/AnyPortal)
|
|
- Android
|
|
- [v2rayNG](https://github.com/2dust/v2rayNG)
|
|
- [X-flutter](https://github.com/XTLS/X-flutter)
|
|
- [SaeedDev94/Xray](https://github.com/SaeedDev94/Xray)
|
|
- [SimpleXray](https://github.com/lhear/SimpleXray)
|
|
- [AnyPortal](https://github.com/AnyPortal/AnyPortal)
|
|
- iOS & macOS arm64 & tvOS
|
|
- [Happ](https://apps.apple.com/app/happ-proxy-utility/id6504287215) ([tvOS](https://apps.apple.com/us/app/happ-proxy-utility-for-tv/id6748297274))
|
|
- [FoXray](https://apps.apple.com/app/foxray/id6448898396)
|
|
- [Streisand](https://apps.apple.com/app/streisand/id6450534064)
|
|
- macOS arm64 & x64
|
|
- [Happ](https://apps.apple.com/app/happ-proxy-utility/id6504287215)
|
|
- [v2rayA](https://github.com/v2rayA/v2rayA)
|
|
- [v2rayN](https://github.com/2dust/v2rayN)
|
|
- [V2rayU](https://github.com/yanue/V2rayU)
|
|
- [V2RayXS](https://github.com/tzmax/V2RayXS)
|
|
- [Furious](https://github.com/LorenEteval/Furious)
|
|
- [OneXray](https://github.com/OneXray/OneXray)
|
|
- [GoXRay](https://github.com/goxray/desktop)
|
|
- [AnyPortal](https://github.com/AnyPortal/AnyPortal)
|
|
- Linux
|
|
- [v2rayA](https://github.com/v2rayA/v2rayA)
|
|
- [v2rayN](https://github.com/2dust/v2rayN)
|
|
- [Furious](https://github.com/LorenEteval/Furious)
|
|
- [GorzRay](https://github.com/ketetefid/GorzRay)
|
|
- [GoXRay](https://github.com/goxray/desktop)
|
|
- [AnyPortal](https://github.com/AnyPortal/AnyPortal)
|
|
|
|
## UUID Generator
|
|
|
|
Third-party UUID generator: [uuidgenerator.net](https://www.uuidgenerator.net)
|