快速在linux上部署shadowsocks服务科学上网

2015-11-13

环境

Debian/Ubuntu (with 128M RAM at least)

部署

在root权限下运行下面的命令

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

安装完成后,脚本提示如下:

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:https://teddysun.com/358.html
Enjoy it!

本脚本安装完成后,已将 shadowsocks-libev 加入开机自启动。
Shadowsocks libev 版不能通过修改配置文件来多端口(只能开启多进程),如果你需要多端口请安装 Python 或 Go 版.

启动/停止/重启

/etc/init.d/shadowsocks start #启动
/etc/init.d/shadowsocks stop #停止
/etc/init.d/shadowsocks restart #重启
/etc/init.d/shadowsocks status #状态

修改ss-server的服务器密码

vim /etc/shadowsocks-libev/config.json

其他说明

已安装旧版本的 Shadowsocks 需要升级的话,需下载本脚本的最新版,运行卸载命令

./shadowsocks-libev-debian.sh uninstall

更多阅读Debian下shadowsocks-libev一键安装脚本|秋水逸冰

Comments
Write a Comment