1. 通过SSH 工具连接到你的VPS上(推荐使用Xshell 5)
2. 复制以下命令,粘贴到软件中,并回车。
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log
4. 等待几分钟左右,即可安装成功,安装成功之后就会通过屏幕输出,您的IP地址,端口,密码,及加密方式,记得保管好!
如果您想多用户使用,请配置 /etc/shadowsocks.json 这个文件。
配置模版:
{
"server":"your_server_ip",
"local_address": "127.0.0.1",
"local_port":1080,
"port_password":{
"8989":"password0",
"9001":"password1",
"9002":"password2",
"9003":"password3",
"9004":"password4"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
使用命令:
启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status
卸载输入:./shadowsocks.sh uninstall
配置文件路径: /etc/shadowsocks.json
配置模版:
{
"server":"your_server_ip",
"local_address": "127.0.0.1",
"local_port":1080,
"port_password":{
"8989":"password0",
"9001":"password1",
"9002":"password2",
"9003":"password3",
"9004":"password4"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
修改步骤:
首先输入 vi /etc/shadowsocks.json
然后按i编辑配置的内容
如果要撤销修改,就将“wq”换为“q”
也可以使用“q!”强制退出这个文件
也可以使用“q!”强制退出这个文件
没有评论:
发表评论