Cent OS一键安装ShadowSocks

来源:互联网 发布:javascript中PoSt 编辑:程序博客网 时间:2024/05/16 05:16
1、安装shadowsocks
使用root用户登录,运行以下3条命令:
wget --no-check-certificate 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

2、安装完成后,脚本提示如下:
Congratulations, Shadowsocks-libev install completed!Your Server IP:your_server_ipYour Server Port:your_server_portYour Password:your_passwordYour Local IP:127.0.0.1Your Local Port:1080Your Encryption Method:aes-256-cfbWelcome to visit:https://teddysun.com/357.htmlEnjoy it!

3、卸载方法
使用 root 用户登录,运行以下命令
./shadowsocks-libev.sh uninstall

其它事项:
客户端配置的参考链接: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