如何搭建ss代理

Others 2018-09-04 09:26:34 2018-09-04 09:26:34 2513 次浏览

Cent:

yum -y install epel-release  

yum install python-pip


pip install shadowsocks
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	1
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	2
    </li>
    

Ubuntu:

apt-get install python-pip
pip install shadowsocks 
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	1
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	2
    </li>
    

至此,你的软件就装好了, 然后你需要写个配置文件,我写完放到了 /etc/ss.json

{
  "server": "",
  "server_port": 443,  
  "local_address": "127.0.0.1",  
  "local_port": 1080,  
  "password": "",
  "timeout": 300,  
  "method":"aes-256-cfb",  
} 
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	1
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	2
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	3
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	4
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	5
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	6
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	7
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	8
    </li>
    
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	9
    </li>
    

最后一个method是协议,可以直接这么写,上方的8388是你想开的端口,注意不要和其他程序冲突,并在你的云服务厂商那里设置好安全组

之后运行

ssserver -c /etc/ss.json -d start 
    <li style="box-sizing:border-box;outline:0px;padding:0px 8px;margin:0px;list-style:none;word-break:break-all;color:#999999;">
    	1
    </li>
    

就可以了。