This is a creation in Article, where the information may have evolved or changed.
See a lot (...) VPS enthusiasts have looked at my blog post and re-organized it again.
We do not recommend the use of a button on the Internet installation, has been a pit.
1. Install git yum install git 2. Installing GCC Yum Install gcc 3. Install Go in this step, if the server is foreign, there is no problem. Because the installation package is on Google. The installation package can be downloaded directly to the server for decompression and installation. wget https://go.googlecode.com/files/go1.2.linux-amd64.tar.gz
TAR-ZXVF go1.2.linux-amd64.tar.gz
Vi/etc/profile
Add the following content to the profile
Export Goroot=/root/go
Export path= $GOROOT/bin: $PATH
Export gopath=/root/gopkg
Gopath and Goroot change to your path.
Source/etc/profile
test: Go version
4. Install shadowsocks-go//git mode, need to compile Go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-server
5. installation Shadowsocks-go//Direct mode wget Https://github.com/shadowsocks/shadowsocks-go/releases/download/1.1.5/shadowsocks-server-linux64-1.1.5.gz
Unzip the file and go to the file directory
Create a new file under this directory Config.json { "Server": "::", "Port_password": { " 8380": "xust20160", " 8381": "xust20161", " 8382": "xust20162", " 8383": "xust20163", " 8384": "xust20164 " }, " method": "Chacha20", "Timeout": }Attention: the red flag in Config.json ("Server": "::"). "::" is to support IPv6, does not affect IPv4.
the reason for using encryption as CHACHA20: Data decoding on Android phones is faster! CHACHA20 requires special support, so you need to install Libsodium Yum install gcc g++ wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz tar zxf LATEST.tar.gz CD Libsodium ./configure Make && make install
Modify file name (easy to use), Permissions
MV Shodowsocks-server SS
chmod 777 SS
Front desk Run :./ss # #关闭了shell界面ss的服务就会停止, generally use the following
Background Run:./ss> Log &