注:本教程适合centos系列和red hat系列
登陆SSH
新的VPS可以先升级
1 | yum -y update |
有些VPS 没有wget
这种要先装
1 | yum -y install wget |
输入以下命令:(可以复制)
1 | wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh |
第一行是下载命令,下载东西,第二行是修改权限,第三行是安装命令
下面是按照配置图
1 | 配置: |
安装完成会有一个配置
1 | Congratulations, shadowsocks install completed!Your Server IP: ***** VPS的IP地址Your Server Port: ***** 你刚才设置的端口Your Password: **** 你刚才设置的密码Your Local IP: 127.0.0.1 Your Local Port: 1080 Your Encryption Method: aes-256-cfb Welcome to visit:https://teddysun.com/342.htmlEnjoy it! |
然后即可以使用
卸载方法:
使用 root 用户登录,运行以下命令:
1 | ./shadowsocksR.sh uninstall |
安装完成后即已后台启动 ShadowsocksR ,运行:
1 | /etc/init.d/shadowsocks status |