Contents

直接上过程代码吧,文章说不定都会被河蟹

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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cd /tmp

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh

chmod +x shadowsocks-libev.sh

./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log

设置密码,不想设置看默认
设置端口,不想设置看默认
设置加密方式,推荐chacha20
安装完之后会显示
Congratulations, shadowsocks-libev install completed!
Your Server IP:your_server_ip
Your Server Port:your_server_port
Your Password:your_password
Your Local IP:127.0.0.1
Your Local Port:1080
Your Encryption Method:chacha20

Welcome to visit:https://teddysun.com/357.html
Enjoy it!

查看是否已经安装成功

ps -ef | grep ss-server | grep -v ps | grep -v grep

卸载命令
cd /tmp # 进入 shadowsocks-libev.sh 所在目录

./shadowsocks-libev.sh uninstall

其他命令

service shadowsocks start # 启动
service shadowsocks stop # 停止
service shadowsocks restart # 重启

如果以后你需要更改 shadowsock 的配置
vi /etc/shadowsocks-libev/config.json

支持 IPv4 与 IPv6
{
"server":["[::0]","0.0.0.0"],
"server_port":your_server_port,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"your_password",
"timeout":600,
"method":"chacha20"
}

多用户配置

{
"server":"0.0.0.0",
"server_ipv6": "[::]",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8989":"password1",
"8990":"password2",
"8991":"password3"
},
"timeout":300,
"method":"chacha20",
"protocol": "origin",
"protocol_param": "",
"obfs": "plain",
"obfs_param": "",
"redirect": "",
"dns_ipv6": false,
"fast_open": false,
"workers": 1
}

最后在你的机器上用客户端链接上就OK了,如果还是打不开Google,多半是端口问题,查查端口是否开放

Contents