搭建VPN

  • A+
所属分类:Tomcat
系统环境:Centos 7
软件版本:shadowsocket 
1.安装python-pip
yum install epel-release -y
yum install python-pip -y
或者安装tar包
wget http://pypi.python.org/packages/source/p/pip/pip-1.4.tar.gz
 tar zxvf pip-1.4.tar.gz
cd pip-1.4
python setup.py install
如提示报错:
Traceback (most recent call last):
 File "setup.py", line 5, in <module>
 from setuptools import setup, find_packages
ImportError: No module named setuptools
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
 sh setuptools-0.6c11-py2.7.egg
再安装python setup.py instll就不会报错了,相对于tar来说,yum更加省事
2.安装shadowsocks
 pip install shadowsocks
3.配置shadowsocket
 vim /etc/shadowsocks.json
{
    "servev":"0.0.0.0",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
    "8989":"123456",
    "9090":"song",
    "9002":"guang",
    "9003":"password3",
    "9004":"password4"
   },
 "timeout":300,
 "method":"aes-256-cfb",
 "fast_open": false
}
4.启动
 ssserver -c /etc/shadowsocks.json -d start
5.客户端下载





 

avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: