There are at least 4 ways to get a xray node, you can choose any way:
1. Download the binaries
If you do not care much about xray's source code, the easiest way to abtain xray node is to download the latest binaries on the xray release page. Currently it supports Linux, Window, OSX. It is highly recommanded to download the latest version. In this guidance, we will use v0.14.13 version as an example。
(Note: the version number you see might be different, here is v0.14.13, but other key words except for version are the same.)
- For Mac user:
xray-v1-osx64.tar.gz
- For Linux users:
xray-v1-i686-pc-linux-gnu.tar.gz
(32bit) or xray-v1-x86_64-linux-gnu.tar.gz
(64bit)
- For Windows users:
xray-v1-win32.zip
(32bit) or xray-v1-win64.zip
(64bit)
- For Raspberry Pi:
xray-v1-arm-linux-gnueabihf.tar.gz
Decompress after downloading, then you will get xrayd
and xray-cli
under the path <your path>/bin
.
2. apt install for Linux users
Please refer to https://github.com/xraychain,Current support Ubuntu,Debian and Mint。
Raspberry Pi users can also use apt,please refer to https://github.com/xraychain。
After installation, you should be able to run xrayd
and xray-cli
directly in the terminal。
3. Compiler from source code
If you want to compile latest xray from source code, please pull the latest source from github : https://github.com/xraychain/xray。
The instruction for compilation : https://github.com/xraychain。Currently we recommand to compile on Linux or OSX, while other platforms might need more configuration.
After compilation, you also get xrayd
and xray-cli
under the path <your path>/src/
4. Get xray node docker image "work continues"
Suppose user has docker environment installed correctly. (what is docker?)
The xray official docker image on docker hub is xray/xray
, you can pull it by docker command :
docker pull xray/xray:latest
All the four ways above cand get xray nodes. There are two important binaries which are related to deployment and RPC calls:
xrayd
:xray core program, i.e. xray fullnode program.
xray-cli
:xray command line interface,interact with xrayd, achieve RPC calls.