各位佬,我有一个阿里云服务器,ubuntu系统,但是我想配置代理,可以让云服务器访问谷歌,有什么好的方法,我目前使用的v2ray,只能单一节点,有没有什么方法,可以在云服务器上测不同的节点,类似于电脑上的v2rayn。或者其他的方式和软件也可以
v2raya 这个带web管理页面
ubuntu 没有图形界面的
按道理来讲,这个会提供脚本执行方式来启动,看Bay佬截图,应该就是那个V2rayN-linux-64.zip
装一个不就完了嘛 ![]()
用的脚本,体验感我个人体验下来不错
clash verge rev,这个有图形化界面,我ubuntu也在用。
你要安装的话选一年前的版本就行,不要选最新的。
安装 xray-core
sudo apt install unzip
curl -OL https://github.com/XTLS/Xray-core/releases/download/v25.10.15/Xray-linux-64.zip
unzip Xray-linux-64.zip xray
chmod +x xray
sudo mv xray /usr/local/bin/
sudo mkdir -p /usr/share/xray
unzip Xray-linux-64.zip geoip.dat
unzip Xray-linux-64.zip geosite.dat
sudo mv geoip.dat /usr/share/xray/
sudo mv geosite.dat /usr/share/xray/
安装 v2rayA
curl -OL https://github.com/v2rayA/v2rayA/releases/download/v2.2.7.3/v2raya_linux_x64_2.2.7.3
chmod +x v2raya_linux_x64_2.2.7.3
sudo mv v2raya_linux_x64_2.2.7.3 /usr/local/bin/v2raya
sudo mkdir -p /usr/local/etc/v2raya/
sudo mkdir -p /etc/systemd/system/v2raya.service.d/
cat <<-'EOF' > v2raya.service
[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
sudo mv v2raya.service /etc/systemd/system/v2raya.service
sudo systemctl daemon-reload
sudo systemctl enable --now v2raya
查看日志 里面有 v2raya web 端访问地址 支持内网或者外网访问
sudo tail -f /tmp/v2raya.log
管理代理 web dashboard
- 浏览器打开 v2raya web 端 http://aaa.bbb.ccc.ddd:2017
- 第一次需要创建管理员用户
- 左上角设置页面为简体中文
- 导入节点链接或订阅地址
- 点击「SERVER」导航按钮 全选所有导入的节点 点击 页面左上角「HTTP」测速按钮
- 等测速结果展示在页面后 任选一个「时延」低的节点 点击「连接」然后页面左上角点击「就绪|启动|关闭」按钮变成「正在运行」
- 如何使用代理 点击右上角「关于」 提供了 SOCKS(20170) HTTP(20171) 代理 等
常见的使用代理场景
- 克隆 GitHub 代码仓库
git -c http.proxy=socks5://127.0.0.1:20170 clone https://github.com/AAA/BBB.git - 下载文件
curl --socks5 127.0.0.1:20170 -OL https://github.com/AAA/BBB/releases/download/CCC/DDD.zip - Docker 拉取镜像 docker 设置代理,以及国内加速镜像设置-次世代BUG池
相关文档
- GitHub - XTLS/Xray-core: Xray, Penetrates Everything. Also the best v2ray-core. Where the magic happens. An open platform for various uses.
- GitHub - v2rayA/v2rayA: A web GUI client of Project V which supports VMess, VLESS, SS, SSR, Trojan, Tuic and Juicity protocols. 🚀
- https://v2raya.org/
- 介绍 - v2rayA
佬儿您好,这个没有桌面程序可以纯用命令行配置吗?
是的,纯命令行 ssh 连接到你的 Linux 服务器上面
主要做两件事
- 安装代理内核 xray-core
- 安装管理代理内核的面板 v2rayA
装好后就可以通过浏览器管理代理
