Claw cloud 容器 VPS 安装 xray | 提取复用 3x-ui 配置,手动部署 xray 代理 | All in one 容器 VPS

Vevc • 252 人浏览

本期摘要:Claw cloud | 容器vps | 3x-ui | xray | Xray-core

Claw cloud 注册地址:
https://console.run.claw.cloud/signin?link=TSWVWVN3G294

容器 VPS 项目地址:
https://github.com/vevc/ubuntu

Xray-core 项目地址:
https://github.com/XTLS/Xray-core

3x-ui 项目地址:
https://github.com/MHSanaei/3x-ui

3x-ui 和 Xray-core 的关系

3x-ui
Xray-core

3x-ui 和 Xray-core 的职责

3x-ui: 配置管理
Xray-core: 代理、流量转发

安装 xray

1. 下载 Xray-core

mkdir ~/xray
cd ~/xray
wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip
unzip Xray-linux-64.zip
rm -f Xray-linux-64.zip

2. 提取 3x-ui 配置

https://github.com/vevc/one-node/blob/main/claw-cloud/xray-config.json

使用 xray 检查配置文件是否正确

3. 使用 supervisor 管理 xray

[program:xray]
command=/home/vevc/xray/xray -c /home/vevc/xray/config.json
autostart=true
autorestart=true
user=vevc
sudo supervisorctl update xray

4. 添加端口映射