VPS 安装SSK

Cent OS 6.x
yum install epel-release
yum update
yum install python-setuptools m2crypto supervisor
easy_install pip
pip install shadowsocks
—-
vi /etc/shadowsocks.json
/////
{
“server”:”0.0.0.0″,
“server_port”:8388,
“local_port”:1080,
“password”:”yourpassword”,
“timeout”:600,
“method”:”aes-256-cfb”
}
/////
vi /etc/supervisord.conf
/////
[program:shadowsocks]
command=ssserver -c /etc/shadowsocks.json
autostart=true
autorestart=true
user=root
log_stderr=true
logfile=/var/log/shadowsocks.log
/////
vi /etc/rc.local
service supervisord start
reboot
①启动Shadowsocks服务端:service supervisord start
②关闭Shadowsocks服务端:service supervisord stop
③重启shadowsocks服务端:service supervisord restart

类似文章