Build Golang version SS service

Source: Internet
Author: User
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 ...

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.