sudo su
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
Thanks @NINOMAE1995 very much!
Download and install v2ray:
curl -Ls https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh | sudo bash
Enable and start v2ray:
systemctl enable v2ray; systemctl start v2ray
Check v2ray running status:
systemctl status v2ray
Generate random UUID:
cat /proc/sys/kernel/random/uuid
Modify config.json
:
- Usually in
/usr/local/etc/v2ray/config.json
- Example: See
z-linux-server.config.json
below- Only need to change
inbounds > clients > [id]
, which is generated above
- Only need to change
Restart v2ray service:
systemctl restart v2ray
Download and extract:
Modify config.json
:
- Usually located in
.\v2ray-windows-64\config.json
- Example: See
z-windows-client.config.json
below- Only need to change
outbounds > vnext > [address] | users > [id]
- The
address
is the IP of server, andid
is same to the uuid in server
- Only need to change
References:
-
官网的一键安装v2ray脚本无法进行安装报错 · Issue #2685 · v2ray/v2ray-core
-
下载安装 | V2Fly.org
-
Releases · v2fly/v2ray-core
-
VMess 协议 · V2Ray 配置指南|V2Ray 白话文教程
-
How to Set Up V2Ray Proxy on Ubuntu 22.04/20.04 Server
-
09:23:28 [Waring] (1534122677] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/ outbound: connection ends > proxy/vmess/ outbound: failed to read header > proxy/vmess/ encoding: failed to read response header > websocket: close 1000 (normal) · v2fly/v2ray-core · Discussion #1508
-
v2fly/v2ray-examples: v2ray-core 的模板们