0%

珂学上网


记录珂学上网的一些方法,主要是使用vps搭建珂学上网服务。

环境:vultr购买vps,系统centos7。

Shadowsocks

首先安装shadowsocks所需工具,在终端中输入以下指令

1
2
3
4
5
yum update -y
yum install wget -y
yum install gcc -y
yum install make -y
yum install python36 -y

接下来下载shadowsocks

1
wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh

配置安装shadowsocks

1
2
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log

根据提示设置端口密码等。

v2ray

直接傻瓜式安装,执行指令

1
bash <(curl -s -L https://git.io/v2ray-setup.sh)

安装完成后显示v2ray信息

v2ray命令

1
2
3
v2ray config	配置v2ray
v2ray start 启动v2ray
v2ray stop 停用v2ray