ss服务器安装

来源:互联网 发布:淘宝全球购在哪里 编辑:程序博客网 时间:2024/05/22 00:51

环境:centos6.6_x64

用处:可用作代理server访问外部网站,结合 SockCap64可做游戏加速器,自己尝试了效果不是很好

一、安装ss服务器

1.先升级系统

yum update

2.安装gcc和依赖包

yum install gcc openssl-devel

3.编译安装升级3.0

wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2tar -jxvf Python-2.7.3.tar.bz2cd Python-2.7.3 ./configuremake allmake installmv /usr/bin/python /usr/bin/python2.6.6ln -s /usr/local/bin/python2.7 /usr/bin/python 

yum不支持Python 2.7,所以,按下面的操作,指定yumpython版本:

vi /usr/bin/yum 

将文件头部的

#!/usr/bin/python

改成

#!/usr/bin/python2.6.6

继续执行shell命令:

cdyum install  -y python-setuptoolswget https://bootstrap.pypa.io/ez_setup.py -O - | pythonwget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gztar zxvf distribute-0.6.10.tar.gzcd distribute-0.6.10python setup.py installcdeasy_install pippip install shadowsocks

二、配置ss

1.首先,新建一个文件:

 vi /etc/shadowsocks.json

2.输入下面的内容:

{"server":"xxx.xx.x.xx","server_port":7777,"password":"xxxxxxx","timeout":300,"method":"aes-256-cfb","fast_open":false,"workers": 1}

或设置多个账号

{"server":"xxx.xx.x.xx","port_password":{     "8381":"xxxxxxx",     "8382":"xxxxxxx",     "8383":"xxxxxxx",     "8384":"xxxxxxx"     },"timeout":60,"method":"rc4-md5","fast_open":false,"workers":1}

原创粉丝点击