安装命令:
1.yum install epel-release
2.yum install python-pip
3.yum install python-setuptools m2crypto supervisor
4.pip install shadowsocks
配置:
1。mkdir /etc/shadowsocks
2。vim /etc/shadowsocks/config.json (一定要在这个目录下)
注:
单用户配置:
{
"server":"", ##填写服务器外网ip地址,ip也可以写内网地址,只要能转发出来即可。
"server_port":8000,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
多用户配置内容:
{
"server":"0.0.0.0",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8000":"123456",
"8001":"123456"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
启动关闭:
1。ssserver -c /etc/shadowsocks/config.json -d start 后台启动
2。ssserver -c /etc/shadowsocks/config.json -d stop 后台停止
设置开机启动:
将启动的命令加入到/etc/rc.local文件的最后
vi /etc/rc.local