Centos 6.5 一键安装shadowsock

1. yum update

yum -y update # 这个是升级命令 效果如下图 

安装 wget

yum -y install wget

2. 安装ss

wget –no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh #step1 

chmod +x shadowsocks.sh #step2 

./shadowsocks.sh 2>&1 | tee shadowsocks.log #step3 

3. 配置ss

  • 单用户配置
sudo -i
vi /etc/shadowsocks.json

{
    "server":"0.0.0.0",
    "server_port":your_server_port,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"your_password",
    "timeout":300,
    "method":"your_encryption_method",
    "fast_open": false
}
  • 多用户配置
{
    "server":"0.0.0.0",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
         "8989":"password0",
         "9001":"password1",
         "9002":"password2",
         "9003":"password3",
         "9004":"password4"
    },
    "timeout":300,
    "method":"your_encryption_method",
    "fast_open": false
}

4. 安装完成

Congratulations, shadowsocks install completed! 
Your Server IP: * # VPS或者是服务器的IP地址 
Your Server Port: ** #刚才配置的端口 
Your Password: ** #刚才配置的密码 
Your Local IP: 127.0.0.1 
Your Local Port: 1080 
Your Encryption Method: aes-256-cfb 
Welcome to visit:https://teddysun.com/342.html 
Enjoy it! 

安装完成

5. 完成

配置完成重启服务

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

其他:yum 安装

  • step1 安装
yum install python-setuptools
easy_install pip
pip install shadowsocks
  • step2 配置
    新建/etc/shadowsocks.json文件
{
    "server":"服务器IP",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"密码",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}
  • step 3 启动
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop