本腳本適用環境:
系統支持:CentOS/Debian/Ubuntu 內存要求:≥128M
關於本腳本:
一鍵安裝 libev 版的 Shadowsocks 最新版本。該版本的特點是內存佔用小(600k左右),低 CPU 消耗,甚至可以安裝在基於 OpenWRT 的路由器上。
默認配置:
服務器端口:自己設定(如不設定,默認爲 6666)
密碼:自己設定(如不設定,默認爲root9527)
加密方式:自己設定(如不設定,默認爲 aes-256-gcm)
客戶端下載:
https://github.com/shadowsocks/shadowsocks-windows/releases
或是
http://www.seeit.life/tools/Shadowsocks-4.0.6.zip
使用方法:
使用root用戶登錄,運行以下命令:
- CentOS
wget http://www.seeit.life/tools/shadowsocks-libev.sh
chmod +x shadowsocks-libev.sh
./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log
安裝完成後,腳本提示如下:
Congratulations, shadowsocks-libev 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
Welcome to visit:http://www.seeit.life/2018/01/06/CentOS%E4%B8%8Bshadowsocks-libev%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC/
Enjoy it!
卸載方法:
使用 root 用戶登錄,運行以下命令: ./shadowsocks-libev.sh uninstall
使用命令:
啓動:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重啓:/etc/init.d/shadowsocks restart
查看狀態:/etc/init.d/shadowsocks status
參考鏈接:
https://github.com/madeye/shadowsocks-libev
https://shadowsocks.be/4.html