1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 18:45:23 +00:00
v2fly/spec/install.md
2015-10-18 14:39:59 +02:00

48 lines
2.1 KiB
Markdown
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.

# V2Ray 安装方式
## 预编译程序
发布于 [Release](https://github.com/v2ray/v2ray-core/releases) 中,每周更新,[更新周期见此](https://github.com/V2Ray/v2ray-core/blob/master/spec/roadmap.md)。
其中:
* v2ray-linux-32.zip: 适用于 32 位 Linux各种发行版均可。
* v2ray-linux-64.zip: 适用于 64 位 Linux各种发行版均可。
* v2ray-linux-arm.zip: 适用于 ARMv6 及之后平台的 Linux如 Raspberry Pi。
* v2ray-linux-arm64.zip: 适用于 ARMv8 及之后平台的 Linux。
* v2ray-linux-macos.zip: 适用于 Mac OS X 10.7 以及之后版本。
* v2ray-windows-32.zip: 适用于 32 位 WindowsVista 及之后版本。
* v2ray-windows-64.zip: 适用于 64 位 WindowsVista 及之后版本。
## 编译源文件
大概流程,请根据实际情况修改
1. 安装 Git sudo apt-get install git -y
2. 安装 golang
1. 下载安装文件:
1. 64位curl -o go_latest.tar.gz https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
2. 32位curl -o go_latest.tar.gz https://storage.googleapis.com/golang/go1.5.1.linux-386.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
3. 下载 V2Ray 源文件go get -u github.com/v2ray/v2ray-core
4. 生成编译脚本go install github.com/v2ray/v2ray-core/tools/build
5. 编译 V2Ray$GOPATH/bin/build
6. V2Ray 程序及配置文件会被放在 $GOPATH/bin/v2ray-XXX 文件夹下XXX 视平台不同而不同)
### Arch Linux
1. 安装 Git sudo pacman -S git
2. 安装 golangsudo pacman -S go
1. export GOPATH=$HOME/work
3. go get -u github.com/v2ray/v2ray-core
4. go install github.com/v2ray/v2ray-core/tools/build
5. $GOPATH/bin/build
### Debian / Ubuntu
bash <(curl -s https://raw.githubusercontent.com/v2ray/v2ray-core/master/release/install.sh)
此脚本会自动安装 git 和 golan 1.5 (如果系统上没有的话,并且需要 root 权限),然后把 v2ray 编译到 $GOPATH/bin/v2ray新装的 golang 会把 GOPATH 设定到 /v2ray。
## 配置和运行
[链接](https://github.com/V2Ray/v2ray-core/blob/master/spec/guide.md)