CentOS搭建Shadowsocks服务

Synopsis: 从事IT工作的朋友们都知道Google搜索技术方面的资料会比百度强太多倍,感谢我们伟大的 GFW , 如果你有一台国外的VPS,就可以轻松搭建一台ShadowSocks服务器,它基于sock5代理,安全快速稳定。同时,Shadowsocks有多个实现版本,其中shadowsocks-libev是shadowsocks的C语言版本,轻量级占用内存少,轻松支持数千并发连接
1. 安装Shadowsocks-libev服务端
shadowsocks-libev
is a lightweight and full featured port for embedded devices and low end boxes. It's a pure C implementation and has a very small footprint (several megabytes) for thousands of connections.
# yum install wget -y # 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
设置密码、端口和加密方式,等待脚本执行完成。
配置文件: /etc/shadowsocks-libev/config.json
相关命令:
- 启动:
/etc/init.d/shadowsocks start
- 停止:
/etc/init.d/shadowsocks stop
- 重启:
/etc/init.d/shadowsocks restart
- 查看运行状态:
/etc/init.d/shadowsocks status
- 查看是否开机启动:
chkconfig --list shadowsocks
- 卸载:
./shadowsocks-libev.sh uninstall
2. 用cron监控Shadowsocks进程
分类: Linux
标签: 翻墙 GFW Shadowsocks VPN
未经允许不得转载: LIFE & SHARE - 王颜公子 » CentOS搭建Shadowsocks服务
分享
作者

0 条评论
评论者的用户名
评论时间暂时还没有评论.