
centos服务器中如何使用v2rayA作为梯子?
官方文档
v2rayA一个易用而强大的,跨平台的 V2Ray 客户端,本文将它用于centos服务器中
官方文档介绍:https://v2raya.org/docs/prologue/introduction/
v2ray-core与Xray-core的安装
cd /tmp/
wget https://github.com/v2fly/v2ray-core/releases/download/v5.20.0/v2ray-linux-64.zip
unzip v2ray-linux-64.zip -d ./v2ray
mkdir -p /usr/local/share/v2ray && cp ./v2ray/*dat /usr/local/share/v2ray
install -Dm755 ./v2ray/v2ray /usr/local/bin/v2ray
wget https://github.com/XTLS/Xray-core/releases/download/v24.9.30/Xray-linux-64.zip
unzip Xray-linux-64.zip -d ./xray
mkdir -p /usr/local/share/xray && cp ./xray/*dat /usr/local/share/xray
install -Dm755 ./xray/xray /usr/local/bin/xray
v2rayA的安装
cd /tmp/
wget https://github.com/v2rayA/v2rayA/releases/download/v2.2.6/v2raya_linux_x64_2.2.6
install -Dm755 ./v2raya_linux_x64_2.2.6 /usr/local/bin/v2raya
cat >> /etc/systemd/system/v2raya.service <<EOF
[Unit]
Description=A web GUI client of Project V which supports VMess, VLESS, SS, SSR, Trojan, Tuic and Juicity protocols
Documentation=https://v2raya.org
After=network.target nss-lookup.target iptables.service ip6tables.service nftables.service
Wants=network.target
[Service]
Environment="V2RAYA_CONFIG=/usr/local/etc/v2raya"
Environment="V2RAYA_LOG_FILE=/tmp/v2raya.log"
Type=simple
User=root
LimitNPROC=500
LimitNOFILE=1000000
ExecStart=/usr/local/bin/v2raya
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable --now v2raya
systemctl status v2raya
浏览器配置
在浏览器输入:http://localhost:2017/ 登录后首次设置admin账号/密码
- 导入订阅链接
- 设置:启用大陆白名单模式
- 启动