美文网首页Linux Troubleshooting
Python的pip配置socks躲猫猫,如此简单?

Python的pip配置socks躲猫猫,如此简单?

作者: yangqing | 来源:发表于2019-07-14 13:07 被阅读0次

需要购买国外服务器

# 环境依赖
yum -y install python2-pip
pip install shadowsocks

# 服务端配置
ssserver -k password -d start

# 客户端配置
sslocal -s 服务器地址 -p 8388 -k password  -d start
# 服务器配置文件
cat /etc/shadowsocks.json 
{
    "server":"server_ip",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"password",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

# 客户端配置文件
cat /etc/shadowsocks.json 
{
    "server":"server_ip",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"password",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false,
    "workers": 1
}

相关文章

网友评论

    本文标题:Python的pip配置socks躲猫猫,如此简单?

    本文链接:https://www.haomeiwen.com/subject/mymbkctx.html