Files
vps/v2raya/v2raya.sh
2025-11-07 13:58:32 +08:00

102 lines
2.0 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# ddns-go 自动安装脚本
# 使用方法: chmod +x ddns-go.sh && ./ddns-go.sh
# curl -sS -O https://gitea.tohub.top/Share/vps/raw/branch/main/init/ddns-go.sh && chmod +x ddns-go.sh && ./ddns-go.sh
# 彩色输出
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color
## 下载
https://gitea.tohub.top/Share/vps/raw/branch/main/v2raya/xray_25.8.3_arm64.deb
https://gitea.tohub.top/Share/vps/raw/branch/main/v2raya/v2raya_2.2.7.4_amd64.deb
## 8. 手动安装 V2rayA
1. 下载 `.deb` 安装包:
```yaml
/root/xray_25.8.3_amd64.deb
/root/v2raya_2.2.7.4_amd64.deb
```
2. 安装依赖:
```bash
sudo chmod 644 /root/xray_25.8.3_amd64.deb
sudo dpkg -i /root/xray_25.8.3_amd64.deb
sudo apt --fix-broken install
```
3. 安装V2rayA
```bash
sudo chmod 644 /root/v2raya_2.2.7.4_amd64.deb
sudo dpkg -i /root/v2raya_2.2.7.4_amd64.deb
sudo apt --fix-broken install
```
4. 启动 V2rayA
```bash
sudo systemctl start v2raya.service
```
5. 设置开机自启:
```bash
sudo systemctl enable v2raya.service
```
6. 登录信息:
```yaml
账号: admin@gmail.com
密码: gmail.com
```
---
## 9.手动卸载 V2rayA
要卸载通过.deb包安装的V2rayA和Xray请按照以下步骤操作
1. 首先停止服务
```bash
sudo systemctl stop v2raya.service
```
2. 禁用开机自启
```bash
sudo systemctl disable v2raya.service
```
3. 卸载V2rayA软件包
```bash
sudo apt remove v2raya
```
4. 卸载Xray软件包
```bash
sudo apt remove xray
```
5. 清理不再需要的依赖项(可选)
```bash
sudo apt autoremove
```
6. 如果需要,删除配置文件(谨慎操作)
```bash
sudo rm -rf /etc/v2raya
```
7. 彻底清除所有配置文件
```bash
sudo apt purge xray v2raya
```
8. 验证:如果没有输出,说明卸载完全成功。
```bash
dpkg -l | grep -E 'v2raya|xray'
```