代码:
https://github.com/shadowsocks/shadowsocks-libev
https://github.com/shadowsocks/shadowsocks-manager
https://github.com/0oVicero0/serverSpeeder_Install

一、节点端Debian

1安装环境

mkdir /usr/local/nodejs
wget -N --no-check-certificate https://nodejs.org/dist/v6.11.1/node-v6.11.1-linux-x64.tar.gz
tar -xf node-v6.11.1-linux-x64.tar.gz -C /usr/local/nodejs/
rm -rf node-v6.11.1-linux-x64.tar.gz
ln -s /usr/local/nodejs/node-v6.11.1-linux-x64/bin/node /usr/local/bin/node
ln -s /usr/local/nodejs/node-v6.11.1-linux-x64/bin/npm /usr/local/bin/npm

2启动ss

sh -c 'printf "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list'
apt update
apt -t jessie-backports install shadowsocks-libev

#apt install shadowsocks-libev

screen -dmS ss ss-manager -m aes-256-cfb -u --manager-address 127.0.0.1:4000

3启动ssmgr

npm i -g shadowsocks-manager
#ln -s /usr/local/nodejs/node-v6.11.1-linux-x64/bin/ssmgr /usr/local/bin/ssmgr

mkdir -p ~/.ssmgr/
vi ~/.ssmgr/ss.yml

type: s
empty: false
shadowsocks:
address: 127.0.0.1:4000
manager:
address: 1.1.1.1:4123
password: 'xxxxxxxx'
db: 'ss.sqlite'

cd ~/.ssmgr
screen -dmS ssmgr ssmgr -c ss.yml

二、主控端Debian

1安装环境

mkdir /usr/local/nodejs
wget -N --no-check-certificate https://nodejs.org/dist/v6.11.1/node-v6.11.1-linux-x64.tar.gz
tar -xf node-v6.11.1-linux-x64.tar.gz -C /usr/local/nodejs/
rm -rf node-v6.11.1-linux-x64.tar.gz
ln -s /usr/local/nodejs/node-v6.11.1-linux-x64/bin/node /usr/local/bin/node
ln -s /usr/local/nodejs/node-v6.11.1-linux-x64/bin/npm /usr/local/bin/npm

2启动ssmgr

npm i -g shadowsocks-manager
#ln -s /usr/local/nodejs/node-v6.11.1-linux-x64/bin/ssmgr /usr/local/bin/ssmgr

mkdir -p ~/.ssmgr/
vi ~/.ssmgr/webgui.yml

type: m
empty: false
manager:
address: 1.1.1.1:4123
password: 'xxxxxxxx'
#这部分的端口和密码需要跟上一步 manager 参数里的保持一致,以连接 type s 部分监听的 tcp 端口
plugins:
flowSaver:
use: true
user:
use: true
account:
use: true
pay:
hour:
price: 0.03
flow: 500000000
day:
price: 0.5
flow: 7000000000
week:
price: 3
flow: 50000000000
month:
price: 10
flow: 200000000000
season:
price: 30
flow: 200000000000
year:
price: 120
flow: 200000000000
email:
use: true
username: 'xxx@yourwebsite.com'
password: 'xxxxxxxx'
host: 'smtp.yourwebsite.com'
#这部分的邮箱和密码是用于发送注册验证邮件,重置密码邮件
webgui:
use: true
host: '1.1.1.1'
port: '80'
site: 'http://yourwebsite.com'
gcmSenderId: '456102641793'
gcmAPIKey: 'AAAAGzzdqrE:XXXXXXXXXXXXXX'
alipay:
use: true
appid: 2015012108272442
notifyUrl: 'http://yourwebsite.com/api/user/alipay/callback'
merchantPrivateKey: 'xxxxxxxxxxxx'
alipayPublicKey: 'xxxxxxxxxxx'
gatewayUrl: 'https://openapi.alipay.com/gateway.do'
db: 'webgui.sqlite'

cd ~/.ssmgr
screen -dmS webgui ssmgr -c webgui.yml

三、serverSpeeder加速

安装:
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh" && bash /tmp/appex.sh 'install'

卸载:
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh" && bash /tmp/appex.sh 'uninstall'

使用方法:
启动命令 /appex/bin/serverSpeeder.sh start
停止加速 /appex/bin/serverSpeeder.sh stop
状态查询 /appex/bin/serverSpeeder.sh status
更新许可 /appex/bin/serverSpeeder.sh renewLic
重新启动 /appex/bin/serverSpeeder.sh restart