5

安装并设置 Shadowsocks

 1 year ago
source link: https://wsdjeg.spacevim.org/setup-shadowsocks/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

安装并设置 Shadowsocks


首先需要下载 shadowsocks-rust。可以使用 curl 直接下载:

curl -fLo shadowsocks.tar.xz https://github.com/shadowsocks/shadowsocks-rust/releases/download/v1.15.0-alpha.4/shadowsocks-v1.15.0-alpha.4.x86_64-unknown-linux-gnu.tar.xz
tar -xf shadowsocks.tar.xz

解压完,在当前目录可以看到一个 ssserver 文件,添加可执行权限:

sudo chmod +x ssserver

新建配置文件 config.json

{
    "server": "my_server_ip",
    "server_port": 8388,
    "password": "mypassword",
    "method": "aes-256-gcm",
    "local_address": "127.0.0.1",
    "local_port": 1080
}

执行如下命令:

nohup ./ssserver -c config.json &

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK