VPS端一键安装Shadowsocks (SS Python版一键安装脚本支持CentOS 6,7,Debian所有版本,Ubuntu所有版本),1
2
3
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
中间会提示输入SS SERVER使用的端口和连接密码。不输入则是系统默认.
安装完成后,脚本提示如下(记得记录下来): Congratulations, shadowsocks install completed! Your Server IP:your_server_ip Your Server Port:your_server_port Your Password:your_password Your Local IP:127.0.0.1 Your Local Port:1080 Your Encryption Method:aes-256-cfb
看到以上提示后就表明VPS上SS已经安装成功,并且已经设置了开机启动,VPS重启后不用手工启动SS。 到此就安装成功可以科学上网了
卸载方法: 使用root用户登录,运行以下命令:1
./shadowsocks.sh uninstall
单用户配置文件 Sample: 配置文件路径:/etc/shadowsocks.json1
2
3
4
5
6
7
8
9
10
{
"server":"0.0.0.0",
"server_port":8989,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"yourpassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
多用户多端口配置文件 Sample: 配置文件路径:/etc/shadowsocks.json ``` { “server”:”0.0.0.0”, “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