shadowsocks一键脚本来自秋水逸冰,安装完成后会加入开机自启动。

CentOS系统

# 安装
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

# 卸载
./shadowsocks-libev.sh uninstall

Debian、Ubuntu系统

# 安装
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

# 卸载
./shadowsocks-libev-debian.sh uninstall

SS配置文件目录

/etc/shadowsocks-libev/config.json

SS使用命令

# 启动:
/etc/init.d/shadowsocks start

# 停止:
/etc/init.d/shadowsocks stop

# 重启:
/etc/init.d/shadowsocks restart

# 查看状态:
/etc/init.d/shadowsocks status