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:

Name Explanation
server the address your server listens
server_port server port
local_address the address your local listens
local_port local port
password password used for encryption
timeout in seconds
method default: "aes-256-cfb", see Encryption
fast_open use TCP_FASTOPEN, true / false
workers number 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条评论 顺序楼层