Debian系统下shadowsocks-libev一键安装脚本

适用环境:
系统要求:Debian/Ubuntu
内存要求:≥128M
发布日期:2017年07月22日
脚本简介:
该脚本用于在Debian或Ubuntu系统中一键安装libev版本的Shadowsocks的最新版本。其特点是内存占用低(约600k),基于libev和C语言开发,CPU消耗低,甚至可以在基于OpenWRT的路由器上运行。
温馨提示:如遇问题,请先查阅《Shadowsocks Troubleshooting》后再咨询。
默认配置:
服务器端口:自定义(未设定默认为8989)
密码:自定义(未设定默认为teddysun.com)
加密方式:自定义(未设定默认为aes-256-gcm)
客户端下载:
https://github.com/shadowsocks/shadowsocks-windows/releases
安装步骤:
以root用户登录,执行以下命令:
wget --no-check-certificate -O shadowsocks-libev-debian.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian.sh chmod +x shadowsocks-libev-debian.sh ./shadowsocks-libev-debian.sh 2>&1 | tee shadowsocks-libev-debian.log
安装完成后,终端将显示以下信息:
Congratulations, Shadowsocks-libev server install completed! Your Server IP:your_server_ip Your Server Port:your_server_port Your Password:your_password Your Encryption Method:your_encryption_method Welcome to visit:https://teddysun.com/358.html Enjoy it!
卸载步骤:
以root用户登录,执行以下命令:
./shadowsocks-libev-debian.sh uninstall
其他注意事项:
客户端配置参考链接:https://teddysun.com/339.html
脚本安装完成后,已将Shadowsocks-libev设置为开机自启动。
命令使用:
启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
查看状态:/etc/init.d/shadowsocks status
更多版本的Shadowsocks一键安装脚本:
ShadowsocksR 版一键安装脚本(支持CentOS,Debian,Ubuntu)
Shadowsocks Python 版一键安装脚本(支持CentOS,Debian,Ubuntu)
CentOS下Shadowsocks-libev一键安装脚本
Shadowsocks-go 一键安装脚本(支持CentOS,Debian,Ubuntu)
更新日志
2017年07月22日:
1、修正:默认加密方式从aes-256-cfb改为aes-256-gcm(官方原版客户端支持该加密方式);
2、新增:安装时可选择16种加密方式中的任意一种,具体如下:
aes-256-gcm aes-192-gcm aes-128-gcm aes-256-ctr aes-192-ctr aes-128-ctr aes-256-cfb aes-192-cfb aes-128-cfb camellia-128-cfb camellia-192-cfb camellia-256-cfb chacha20-ietf-poly1305 chacha20-ietf chacha20 rc4-md5
2017年02月24日:
1、恢复:通过Github API自动获取Shadowsocks-libev的最新release版本的功能(v3.0.3)。
2017年02月13日:
1、更新:版本升级至3.0.2。
2、修复:解决Debian 7下缺少libudns-dev依赖包的问题。
2017年02月12日:
1、更新:版本升级至3.0.1(请下载最新脚本进行安装)。
2016年11月05日:
1、增加:判断是否已安装,若已安装则获取版本号并与最新版比较,支持升级覆盖安装;
2、修正:未安装时获取最新版本号的问题。
2016年09月23日:
1、修正:偶尔自动获取版本号失败的问题;
2、增加:自动判断VPS是否存在IPv6地址,并在配置文件中添加监听IPv6地址。
2016年09月17日:
1、重构代码,自动获取Github上最新版进行安装,不再手动修改版本号;
2、自动检测本机是否已安装,若已安装则正常退出(需先卸载才能安装新版);
3、改为下载tar.gz包进行安装,无需依赖unzip命令。
2016年09月12日:
1、更新:版本升级至2.5.2。
2016年09月11日:
1、更新:版本升级至2.5.1。
2016年08月29日:
1、更新:版本升级至2.5.0;
2、修正:由于安装时文件名更新,卸载时文件名改为一致。
2016年07月14日:
1、更新:版本升级至2.4.7。
2016年07月05日:
1、修正:新增依赖xmlto、asciidoc;
2、修正:由于安装时文件名更新,卸载时文件名改为一致。
2016年05月12日:
1、修正:Shadowsocks服务设置为强制默认开机启动。
2015年08月01日:
1、增加:自定义服务器端口功能(未设定时默认端口为8989)。
2015年04月30日:
1、修改配置文件/etc/shadowsocks-libev/config.json以同时启用IPv4和IPv6支持:
{ "server":["[::0]","0.0.0.0"], "server_port":your_server_port, "local_address":"127.0.0.1", "local_port":1080, "password":"your_password", "timeout":600, "method":"aes-256-cfb" }2、Shadowsocks libev版本无法通过修改配置文件实现多端口(仅支持开启多进程),如需多端口请安装Python或Go版本;
2015年03月09日:
1、新增:启动脚本/etc/init.d/shadowsocks,使用更为简便。
2、修正:优化安装过程。
2014年10月31日:
1、修正:写入自启动命令到/etc/rc.local时的错误。
特别说明:
如需升级已安装的旧版本Shadowsocks,请下载本脚本的最新版本并直接运行以实现自动升级。
./shadowsocks-libev-debian.sh
参考链接:
https://github.com/shadowsocks/shadowsocks-libev
