https://github.com/shadowsocks/shadowsocks-libev
本脚本适用环境:
系统支持:CentOS
内存要求:≥128M
日期:2018 年 06 月 01 日
关于本脚本:
一键安装 libev 版的 Shadowsocks 最新版本。该版本的特点是内存占用小(600k左右),低 CPU 消耗,甚至可以安装在基于 OpenWRT 的路由器上。
友情提示:如果你有问题,请先参考这篇《Shadowsocks Troubleshooting》后再问。
默认配置:
服务器端口:自己设定(如不设定,默认从 9000-19999 之间随机生成)
密码:自己设定(如不设定,默认为 teddysun.com)
加密方式:自己设定(如不设定,默认为 aes-256-gcm)
Shadowsocks for Windows 客户端下载:
https://github.com/shadowsocks/shadowsocks-windows/releases
使用方法:
使用root用户登录,运行以下命令:
wget --no-check-certificate -O shadowsocks-libev.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh chmod +x shadowsocks-libev.sh ./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log
适用于Debian/Ubuntu 系统
wget --no-check-certificate 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
------------------------------------------- 由于秋大在github上默认的是rm分支,master主支其实还在的。如果秋大删除了脚本,我们看他的github源码fork 或star名单里找出其他用户fork的脚本,改下上面的链接就继续可以用了。 秋大的github地址https://github.com/teddysun/shadowsocks_install/tree/master -------------------------------------------
安装完成后,脚本提示如下:
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/357.html Enjoy it!
卸载方法:
使用 root 用户登录,运行以下命令:
./shadowsocks-libev.sh uninstall
其他事项:
其他事项:
安装完成后即已后台启动 shadowsocks ,运行:
ps -ef | grep ss-server | grep -v ps | grep -v grep
可以查看进程是否存在。
本脚本安装完成后,会将 shadowsocks-libev 加入开机自启动。
本脚本会始终安装最新版的 Shadowsocks;
修改配置文件 /etc/shadowsocks-libev/config.json 同时启用 IPv4 与 IPv6 支持(搬瓦工已支持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"
}
Shadowsocks libev 版不能通过修改配置文件来多端口(只能开启多进程),如果你需要多端口请安装 Python 或 Go版;
客户端配置的参考链接:https://teddysun.com/339.html
安装完成后即已后台启动 Shadowsocks-libev ,运行:
/etc/init.d/shadowsocks status
可以查看进程是否启动。
本脚本安装完成后,会将 Shadowsocks-libev 加入开机自启动。
使用命令:
启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
查看状态:/etc/init.d/shadowsocks status
客户端版本 Shadowsocks 安装:
https://crifan.github.io/scientific_network_summary/website/server_client_mode/ss_client/client_android.html