官方文档:https://github.com/shadowsocks/shadowsocks-libev#debian–ubuntu
安装依赖及软件
1
2
3
4
$ sudo apt-get install software-properties-common -y
$ sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
$ sudo apt-get update
$ sudo apt install shadowsocks-libev
配置config.json
1
$ sudo vim /etc/shadowsocks-libev/config.json
参考如下配置内容
1
2
3
4
5
6
7
8
{
"server":"0.0.0.0",
"server_port":8488,
"local_port":1080,
"password":"123456",
"timeout":60,
"method":"aes-256-cfb"
}
启动服务
1
2
3
# Start the service
$ sudo /etc/init.d/shadowsocks-libev start # for sysvinit, or
$ sudo systemctl start shadowsocks-libev # for systemd
重启服务
1
$ sudo systemctl restart shadowsocks-libev
查看服务状态
1
$ sudo systemctl status shadowsocks-libev