CentOS 7 64-bit server go language SS build shadowsocks support multi-user

Source: Internet
Author: User
Tags install go
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 &
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.