debian9安装shadowsocks libev版

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[root@vultr ~]# sh -c 'printf "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list'
[root@vultr ~]# apt update
[root@vultr ~]# apt -t stretch-backports install shadowsocks-libev -y
[root@vultr ~]# curl -sL https://deb.nodesource.com/setup_10.x | bash -
[root@vultr ~]# apt-get install -y nodejs

[root@host ~]# npm i -g shadowsocks-manager --unsafe-perm

[root@host ~]# npm i -g pm2

[root@vultr ~]# ss-manager -m aes-256-cfb -u --manager-address 127.0.0.1:6001
[root@host ~]# pm2 --name "ssmanger" -f start ss-manager -x -- -m aes-256-cfb -u --manager-address 127.0.0.1:6001

[root@host ~]# mkdir ~/.ssmgr
[root@host ~]# vi ~/.ssmgr/ss.json
1
2
3
4
5
6
7
8
9
10
11
{
"type": "s",
"shadowsocks": {
"address": "127.0.0.1:6001"
},
"manager": {
"address": "0.0.0.0:6002",
"password": "123456"
},
"db": "ss.sqlite"
}
1
2
3
[root@host .ssmgr]# ssmgr -c ~/.ssmgr/ss.json
[root@host ~]# pm2 --name "ss-json" -f start ssmgr -x -- -c ~/.ssmgr/ss.json
[root@host .ssmgr]# vi ~/.ssmgr/webgui.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"type": "m",
"manager": {
"address": "47.244.162.218:6002",
"password": "123456"
},
"plugins": {
"flowSaver": {
"use": true
},
"user": {
"use": true
},
"account": {
"use": true
},
"email": {
"use": true,
"type": "smtp",
"username": "bufx@qq.com",
"password": "iczgevxiljllccai",
"host": "smtp.qq.com"
},
"webgui": {
"use": true,
"host": "0.0.0.0",
"port": "80",
"site": "http://ssmgr.pryhub.com",
"gcmSenderId": "456102641793",
"gcmAPIKey": "AAAAGzzdqrE:XXXXXXXXXXXXXX"
},
"webgui_telegram": {
"use": false,
"token": "191374681:AAw6oaVPR4nnY7T4CtW78QX-Xy2Q5WD3wmZ"
}
},
"db": "webgui.sqlite",
"redis": {
"host": "127.0.0.1",
"port": 6379,
"password": "",
"db": 0
}
}
1
2
[root@host .ssmgr]# ssmgr -c ~/.ssmgr/webgui.json
[root@host ~]# pm2 --name "webguiyml" -f start ssmgr -x -- -c ~/.ssmgr/webgui.json
作者

buubiu

发布于

2018-09-09

更新于

2024-01-25

许可协议