Ubuntu安装Shadowsocks服务

安装

在root账号下运行1

1
2
3
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

意见将默认端口改为443。

卸载

在root下运行:

1
./shadowsocks-libev-debian.sh uninstall

配置

1
vim /etc/shadowsocks-libev/config.json

启动

1
/etc/init.d/shadowsocks start

停止

1
/etc/init.d/shadowsocks stop

重启

1
/etc/init.d/shadowsocks restart

状态

1
/etc/init.d/shadowsocks status