SS安装错误合集

常用步骤

apt-get update
apt-get install python-pip
pip install shadowsocks
vi /etc/shadowsocks.json

单用户

{
    "server":"0.0.0.0",
    "server_port":8989,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"yourpassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

多用户

{
    "server":"0.0.0.0",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
        "8989":"password0",
        "9001":"password1",
        "9002":"password2",
        "9003":"password3",
        "9004":"password4"
    },
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

开机运行SS

vi /etc/rc.local
ssserver -c /etc/shadowsocks.json -d start

ImportError: cannot import name main

vim /usr/bin/pip

from pip import __main__
if __name__ == '__main__':
    sys.exit(__main__._main())

ImportError: No module named setuptools

wget https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar zxvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py install

install setuptools module

# for python2.x
sudo apt-get install python-setuptools
# for python3.x
sudo apt-get install python3-setuptools

你可能感兴趣的:(SS安装错误合集)