2018年9月

配置ss代理

  1. pip3 install https://github.com/shadowsocks/shadowsocks/archive/master.zip 安装shadowsocks

  2. ssserver --version 查看版本 3.0.0

  3. sudo mkdir /etc/shadowsocks 新建文件夹

  4. sudo nano /etc/shadowsocks/config.json 配置json文件

    {
            "server":"服务器ip",
            "server_port":12121,
            "local_address": "127.0.0.1",
            "local_port":1080,
            "password":"password",
            "timeout":300,
            "method":"aes-256-cfb",
            "fast_open": false
    }
  1. ssserver -c /etc/shadowsocks/config.json 运行ss服务,建议放在screen中
tips: 遇到pip3报错:

 Traceback (most recent call last):   File "/usr/bin/pip", line 9, in <module>
     from pip import main ImportError: cannot import name main 
 解决方法:编辑文件,改为 
 from pip import __main__ if __name__ == '__main__':
     sys.exit(__main__._main())