Skip to content

Commit

Permalink
Merge pull request #27 from helinb/patch-1
Browse files Browse the repository at this point in the history
增加archlinux安装方法
  • Loading branch information
DarienRaymond committed Sep 27, 2015
2 parents b339953 + 21e7e8a commit 0ce02fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@
3. go get github.com/v2ray/v2ray-core
4. go build github.com/v2ray/v2ray-core/release/server

### archlinux 编译源文件
1. 安装 Git: sudo pacman -S git
2. 安装 golang:sudo pacman -S go
1. export GOPATH=$HOME/work
3. go get github.com/v2ray/v2ray-core
4. go build -o $GOPATH/bin/v2ray -compiler gc github.com/v2ray/v2ray-core/release/server

### Debian / Ubuntu
sudo bash <(curl -s https://raw.githubusercontent.com/v2ray/v2ray-core/master/release/install.sh)

此脚本会自动安装 git 和 golan 1.5 (如果系统上没有的话),然后把 v2ray 编译到 $GOPATH/bin/v2ray,新装的 golang 会把 GOPATH 设定到 /v2ray。


## 配置和运行
[链接](https://github.com/V2Ray/v2ray-core/blob/master/spec/guide.md)

0 comments on commit 0ce02fa

Please sign in to comment.