搭建 Shadowsocks
, It's rain
使用 SSH 连接 VPS
Mac 和 Linux
打开终端,输入
ssh -p 端口 [Username]@[IP Address]
输入密码
Windows
可以用 Xshell
安装python,如果你已经有了,跳过此步骤。
yum -y install python
安装pip,如果你已经有了,跳过此步骤。
yum -y install pip
安装shadowsock
安装
pip install shadowsocks
配置
打开配置文件:nano /etc/shadowsocks.json
{
"server":"0.0.0.0",
"server_port":443,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"password",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": true,
"workers":1
}
多用户配置
打开配置文件:nano /etc/shadowsocks.json
{
"server":"0.0.0.0",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"16500":"password1",
"16501":"password2",
"16502":"password3"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open":true
}
启动
ssserver -c /etc/shadowsocks/shadowsocks.json --user nobody -d start
查看版本
pip show shadowsocks
设置开机启动
ssserver -c /etc/shadowsocks/shadowsocks.json --user nobody -d start
控制
/etc/init.d/shadowsocks start # 启动
/etc/init.d/shadowsocks stop # 停止
/etc/init.d/shadowsocks restart # 重启
/etc/init.d/shadowsocks status # 状态
Responses