This is a creation in Article, where the information may have evolved or changed.
Build Golang version SS service
First step: Install Golang
cd /usr/local # golang安装到此路径下wget https://storage.googleapis.com/golang/go1.6.3.linux-amd64.tar.gztar -xvf go1.6.3linux-amd64.tar.gzvim /etc/profile # 设置系统 GOROOT 并添加环境变量 export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/binsource /etc/profile # 重载此文件cd ~ # 到家目录下面设置自己的GOPATH 这样不会污染其他用户的vim .bash_profile export GOPATH=$HOME/shadowsockssource .bash_profile
Step Two: Build the SS service
go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-servercd shadowsocks/ls bin pkg srccd bin/shadowsocks-server -h # 查看帮助vim config.json # 编写配置文件 { "server":"127.0.0.1", "server_port":8388, "local_port":1080, "password":"xxxx", "method": "aes-128-cfb-auth", "timeout":600 }./shadowsocks-server > log & # 在后台运行ss服务
The client settings are as follows:
How to use can see document Https://github.com/shadowsock ...