1、安装Shadowsocks
$ sudo apt-get update $ sudo apt-get install python-gevent python-pip python-m2crypto python-wheel python-setuptools $ sudo pip install shadowsocks
2、配置Shadowsocks
$ sudo vi /etc/shadowsocks.json
写入如下内容:
{ "server":"100.100.110.11", "port_password":{ "9900":"q010", "9901":"Q011", "9902":"Q012" }, "local_address":"127.0.0.1", "local_port":1080, "timeout":300, "method":"rc4-md5" }
3、启动和停止
$ sudo ssserver -c /etc/shadowsocks.json -d start $ sudo ssserver -c /etc/shadowsocks.json -d stop
时间: 2024-10-05 04:58:27