Shadowsocks-go Mu Install configuration tutorial in Linux

Source: Internet
Author: User
Tags install go redis time interval centos using git

Pre-installation configuration

Still the same, that is the installation of various support libraries.

Debian

Apt-get Update
Apt-get install-y redis-server git

Centos

Yum install-y redis-server git

Install GO Environment

ubuntu/debian– Installation Golang Installation Tutorial: https://www.bxl.me/9531.html
CentOS 6– Install the Go Language installation tutorial: https://www.bxl.me/9525.html
Install Ss-go-mu

Now that we have all deployed the go environment, what are we using git?
Note here that our configured GO environment variables cannot be incorrect. Otherwise, failure/error.

Go to Github.com/orvice/shadowsocks-go
CD ~/.GO/SRC/GITHUB.COM/ORVICE/SHADOWSOCKS-GO/MU
Go get
Go Build

The compilation takes a few minutes to brew a cup of tea.

Configure SS-GO-MU

The configuration file is then copied to the Bin execution directory and renamed.

CP example.conf ~/.go/bin/config.conf

And then just start editing the configuration file

<span class= "pun" >vi ~</span><span class= "str" >/.go/</span><span class= "PLN" >bin< /span><span class= "pun" >/</span><span class= "PLN" >config</span><span class= "pun" >.</span><span class= "PLN" >conf
</span>

Basic Configuration Instructions

[Base]
N 1 # No use for the time being
IP 0.0.0.0 # No use for the time being
Checktime 60 # Check time interval
Synctime 60 # Synchronous Flow interval time
Client Webapi

Depending on the configuration of the client, select Configure Webapi or MYSQL,WEBAPI to be compatible with the Ss-panel V3 's Mu API.

The above is the official document of explanation.

A description of some of the following configuration files, here again in detail.

[webapi]
URL http://sspanel.dev/mu   #填写你sspanel地址, note that the suffix has mu
key key                      #API通讯秘钥,
node_id 1              in the. env file configured in the front-end Sspanel       #节点编号, fill in error flow there is a mistake oh.

[MySQL]
host  127.0.0.1:3306        #Mysql的地址, if not on the same VPS, Need to open MySQL remote settings, there are tutorials in the blog.
User user                    #mysql的用户名
Pass pass                    #mysql的密码
db   db                      #数据库名
Table table                  #数据表名, this is typically user.

[Redis]
Host localhost:6379 #Redis数据库地址
# If no passwd set,comment this line
Pass "" #Redis数据库密码
DB 1 #Redis数据库默认库顺序


After configuring the above information (the correct situation), we can also start normal.
Start SS-GO-MU

CD ~/.go/bin/
./mu

The background run can try screen or supervisor, the two tools.

Note: If your redis configuration is incorrect, you will be prompted

erro[0000] Boot Redis fail:err Client sent AUTH, but no password is set

See this passage, explain is the next article of the update,

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.