广告 广告横幅

v2rayA 文档中心

从入门到精通,掌握 v2rayA 的所有功能。包含详细的安装指南、配置教程、API 参考和最佳实践。

50+
文档章节
10,000+
活跃用户
5分钟
快速部署

文档分类

按需选择,快速找到您需要的信息

安装指南

详细的安装步骤,支持 Windows、macOS、Linux 和 Docker

  • 系统要求
  • 下载安装
  • Docker 部署
  • 包管理器安装
查看详情

配置教程

从基础配置到高级功能,一步步教会您使用 v2rayA

  • 基础配置
  • 服务器管理
  • 路由规则
  • 高级设置
查看详情

API 参考

完整的 API 文档,支持自定义集成和自动化

  • REST API
  • WebSocket
  • 认证方式
  • 示例代码
查看详情

常见问题

解答用户最关心的问题,快速解决使用中的困惑

  • 连接问题
  • 性能优化
  • 故障排除
  • 最佳实践
查看详情

快速开始

5分钟快速部署 v2rayA

1

下载安装

根据您的操作系统下载对应的安装包

# Windows
下载 v2rayA_windows_amd64.exe

# macOS
下载 v2rayA_darwin_amd64

# Linux
下载 v2rayA_linux_amd64
2

启动服务

运行可执行文件,启动 v2rayA 服务

# Windows
双击运行 v2rayA_windows_amd64.exe

# macOS/Linux
chmod +x v2rayA_*
./v2rayA_*
3

访问界面

打开浏览器访问 Web 管理界面

http://localhost:2017
4

添加服务器

在管理界面中添加您的代理服务器

1. 点击"添加服务器"
2. 选择协议类型
3. 填写服务器信息
4. 保存并启用

API 参考

完整的 REST API 文档

基础信息

基础URL: http://localhost:2017/api
认证方式: Bearer Token
数据格式: JSON

主要端点

GET /servers

获取所有服务器列表

POST /servers

添加新的服务器

PUT /servers/{id}

更新服务器信息

DELETE /servers/{id}

删除服务器

使用示例

# 获取服务器列表
curl -X GET "http://localhost:2017/api/servers" \
  -H "Authorization: Bearer YOUR_TOKEN"

# 添加服务器
curl -X POST "http://localhost:2017/api/servers" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "name": "My Server",
    "protocol": "vmess",
    "address": "example.com",
    "port": 443
  }'
import requests

# 获取服务器列表
response = requests.get(
    "http://localhost:2017/api/servers",
    headers={"Authorization": "Bearer YOUR_TOKEN"}
)
servers = response.json()

# 添加服务器
new_server = {
    "name": "My Server",
    "protocol": "vmess",
    "address": "example.com",
    "port": 443
}
response = requests.post(
    "http://localhost:2017/api/servers",
    json=new_server,
    headers={"Authorization": "Bearer YOUR_TOKEN"}
)
// 获取服务器列表
fetch('http://localhost:2017/api/servers', {
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN'
  }
})
.then(response => response.json())
.then(servers => console.log(servers));

// 添加服务器
fetch('http://localhost:2017/api/servers', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_TOKEN'
  },
  body: JSON.stringify({
    name: 'My Server',
    protocol: 'vmess',
    address: 'example.com',
    port: 443
  })
});