2024/11/23小于 1 分钟
Ubuntu Server安装VPN
Ubuntu Server安装VPN代理来解决仓库拉取失败的问题
1. 通过软件源安装
1. 添加公钥
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo tee /etc/apt/keyrings/v2raya.asc2. 添加 V2RayA 软件源
echo "deb [signed-by=/etc/apt/keyrings/v2raya.asc] https://apt.v2raya.org/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list
sudo apt update3. 安装 V2RayA
sudo apt install v2raya v2ray ## 也可以使用 xray 包2. 初始化配置
- 启动 v2rayA
sudo systemctl start v2raya.service- 设置开机自动启动
sudo systemctl enable v2raya.service- 配置网页
访问http://localhost:2017进入网页UI

