1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-16 04:35:24 +00:00

install method

This commit is contained in:
V2Ray 2015-09-12 22:56:45 +02:00
parent 51670b223d
commit de636b123a
7 changed files with 43 additions and 5 deletions

View File

@ -25,5 +25,8 @@ V2Ray 是一个翻墙工具包,用于简化和复用其它翻墙工具,加
* 2016.01 **1.5** 完成,兼容 ShadowSocks 协议
* 2016.04 **2.0** 完成,多服务器模式
## 进展
Version 1.0 Alpha[安装方式](https://github.com/V2Ray/v2ray-core/blob/master/spec/install.md)。理论上可用,简单测试通过,还未进行稳定性和性能测试。
## 关于
我是只是一名普通的开发人员,已肉翻,本已不依赖这些翻墙工具,但 ShadowSock 和 GoAgent 被迫删除代码的事件实在太恶心,不得不做点什么了。

View File

@ -1,3 +1,4 @@
/* Socks 5 */
{
"auth": "noauth"
"auth": "noauth" /* */
}

View File

@ -1,5 +1,7 @@
/* VMess */
{
"clients": [
/* ID */
{"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"}
]
}

View File

@ -1,9 +1,11 @@
/* VMess */
{
"vnext": [
{
"address": "127.0.0.1",
"address": "127.0.0.1", /* */
"port": 27183,
"users": [
/* */
{"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"}
]
}

View File

@ -1,11 +1,12 @@
/* Point Socks5 Point */
{
"port": 1080,
"port": 1080, /* Socks 5 */
"inbound": {
"protocol": "socks",
"file": "in_socks.json"
"file": "in_socks.json" /* Socks 5 */
},
"outbound": {
"protocol": "vmess",
"file": "out_vmess.json"
"file": "out_vmess.json" /* VMess */
}
}

View File

@ -1,3 +1,4 @@
/* Point VMess */
{
"port": 27183,
"inbound": {

28
spec/install.md Normal file
View File

@ -0,0 +1,28 @@
# V2Ray 安装方式
目前 V2Ray 还在早期测试阶段,暂不提供预编译的运行文件。请使用下面的方式下载源文件并编译。
## 编译源文件
1. 安装 Git sudo apt-get install git -y
2. 安装 golang
1. curl -o go_latest.tar.gz https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
2. sudo tar -C /usr/local -xzf go_latest.tar.gz
3. export PATH=$PATH:/usr/local/go/bin
4. export GOPATH=$HOME/work
5. go get github.com/v2ray/v2ray-core
6. go build github.com/v2ray/v2ray-core/release/server
## 运行
Socks 5 转发 VMess
./server --config=$HOME/work/src/github.com/v2ray/v2ray-core/release/config/vpoint_socks_vmess.json
VMess 转发最终网站:
./server --config=$HOME/work/src/github.com/v2ray/v2ray-core/release/config/vpoint_vmess_freedom.json
测试服务器可用性:
curl -v --socks5-hostname 127.0.0.1:1080 https://www.google.com/