搭一个梯子

搭一个梯子好上网


参考

https://blog.csdn.net/pxr1989104/article/details/78789836

apt update
apt install python-pip

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales

pip install --upgrade pip
pip install setuptools
如遇问题,应该就是改/usr/bin/pip文件from pip import main为from pip._internal import main
pip install shadowsocks
vim /etc/shadowsocks.json

{
    "server":"修改之为服务器IP",
    "server_port":10010,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"password",
    "timeout":600,
    "method":"aes-256-cfb",
    "fast_open":true
}

chmod 755 /etc/shadowsocks.json
apt install python-m2crypto

ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop

vim /etc/rc.local
添加如下内容
ssserver -c /etc/shadowsocks.json -d start
exit 0

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.