install(you also can install using apt)

apt-get install python-pip
pip install git+

cd /etc
sudo touch shadowsocks.json

Create a config file /etc/shadowsocks.json. Example:

    "local_address": "",
    "fast_open": false

Explanation of the fields:

serverthe address your server listens
server_portserver port
local_addressthe address your local listens
local_portlocal port
passwordpassword used for encryption
timeoutin seconds
methoddefault: "aes-256-cfb", see Encryption
fast_openuse TCP_FASTOPEN, true / false
workersnumber of workers, available on Unix/Linux

To run in the foreground:

server use ssserver local use sslocal

we use sslocal

sslocal -c /etc/shadowsocks.json

To run in the background:

sslocal -c /etc/shadowsocks.json -d start
sslocal -c /etc/shadowsocks.json -d stop

Catch the error when run sslocal -c /etc/shadowsocks.json -d start

INFO: loading config from /etc/shadowsocks.json

2019-04-21 16:03:55 INFO     loading libcrypto from

2019-04-21 16:03:55 ERROR    [Errno 13] Permission denied: '/var/run/'

whereis sslocal

sslocal: /home/ervincheung/.local/bin/sslocal

So run

sudo .local/bin/sslocal -c /etc/shadowsocks.json -d start
sudo .local/bin/sslocal -c /etc/shadowsocks.json -d stop

chrome安装插件 SwitchyOmega

链接: 提取码: d7aw




0条评论 顺序楼层