ss server

转载自 https://blog.csdn.net/xiongyangg/article/details/80550440

 

 

依次执行以下操作

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-pip
sudo pip3 install setuptools
sudo pip3 install s

如果提示locale error, 执行:

 export LC_ALL=C
  1. 创建配置文件 s.json 写入以下内容, 期中port_password中的内容是端口与对应的密码, method是加密方式.
{
  "server": "0.0.0.0",
  "local_address": "127.0.0.1",
  "local_port": 1080,
  "port_password": {
    "38011": "passwd38011",
    "38012": "passwd38012",
    "38013": "passwd38013",
    "38014": "passwd38014",
    "7777":  "passwd7777",
    "8888":  "passwd8888"
  },
  "timeout": 300,
  "method": "rc4-md5",
  "fast_open": false
}

6: 启动服务器

ssserver -c s.json start

也可以以服务的形式启动

ssserver -c s.json -d start

日志文件在

/var/log/s.log

你可能感兴趣的:(ss server)