mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-14 14:47:12 +00:00
install method
This commit is contained in:
1 parent
51670b223d
commit
de636b123a
7 files changed
+43
-5
No files matched your search
@@ -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/
|
||||
|
||||
Reference in new issue
Block a user