网上搭建shadowsocks科学上网教程一大摞,之前我也看过,但苦于没有资源,巧妇难为无米之炊,一直未付实践。如今有了Vultr VPS,放着不用,人生一大浪费。于是乎,在大神指导下,几分钟就搭建了shadowsocks服务器,在家里路由器上配置了ss,连接成功,家里所有设备都可妥妥上网,不受束缚的感觉真好,就像刚出笼的小鸟,想一飞冲天。
废话少话。以下内容来自
秋水逸冰
和
Shadowsocks非官方网站
。大恩不言谢,网络世界有了你们,变得精彩缤纷,历史会记住你们的。哈哈。 我VPS系统是Debian,用的是shadowsocks-libev-debian。详细教程请参考
Shadowsocks非官方网站
。
建立过程:
1.使用root用户登录,运行以下命令:
适用于 CentOS 系统:
1
2
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
|
适用于 Debian/Ubuntu 系统:
1
2
3
| 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
|
2.安装完成后,脚本提示如下:
1
2
3
4
5
6
7
8
9
10
| 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:http://teddysun.com/357.html
Enjoy it!
|
3.卸载方法:
使用 root 用户登录,运行以下命令:
./shadowsocks-libev.sh uninstall
安装完成后即已后台启动 shadowsocks。
本脚本安装完成后,会自动将 shadowsocks-libev 加入开机自启动。
4.使用命令:
启动:
/etc/init.d/shadowsocks start
停止:
/etc/init.d/shadowsocks stop
重启:
/etc/init.d/shadowsocks restart
查看状态:
/etc/init.d/shadowsocks status