推荐 VPS 服务器,vultr注册地址 (全球15个服务器位置可选,KVM框架),一直在用还可以。 最近切换到linode使用。
yum install python-setuptools && easy_install pip
# pip install --upgrade pip
# sudo easy_install pip
# sudo pip install easygui
pip install shadowsocks
vim /etc/shadowsocks.json
{
"server":"your_server_ip",
"server_port":8388,
"password":"yourpassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false,
"workers": 1
}
代码中各字段的含义
{
"server":"your_server_ip",
"port_password":{
"8381":"pass1",
"8382":"pass2",
"8383":"pass3",
"8384":"pass4"
},
"timeout":60,
"method":"rc4-md5",
"fast_open":false,
"workers":1
}
ssserver -c /etc/shadowsocks.json -d start
# 或不需要配置文件
sudo ssserver -p 443 -k password -m rc4-md5 --user nobody -d start
# 关闭防火墙
systemctl stop firewalld.service # 停止firewall
systemctl disable firewalld.service # 禁止firewall开机启动
ssserver -d stop
less /var/log/shadowsocks.log
vi /etc/rc.local
# 下面代码复制到 rc.local 中
ssserver -c /etc/shadowsocks.json -d start
ssserver -h