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,