写在前面:由于部分同学在深度学习过程中,访问国外技术文献比较慢,特录制本视频教程。请遵守国内法律法规,切勿用于非法用途。
提醒:阿里云拥有完善的网络日志体系,网络不是法外之地,请勿因为浏览非法网站而因小失大。
一。购买服务器(参考演示)
购买站点,阿里云,轻量应用服务器
二,安装代理服务器
系统要求:ubuntu22.04系统
1.安装Shadowsocks:
pip install git+https://github.com/shadowsocksrr/shadowsocksr.git@akkariiin/master
2.创建Shadowsocks配置文件,
先修改一下必要的信息
vim /etc/shadowsocks.json
{
"server": "0.0.0.0",
"server_port": 16888,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "你的密码,越复杂越好",
"timeout": 300,
"method": "aes-256-cfb"
}
3.启动Shadowsocks
ssserver -c /etc/shadowsocks.json -d start
服务器端设置已完成
二。配置防火墙
注意,要配置阿里云的防火墙,放行16888端口
二。windows上使用代理
客户端下载:https://wwuk.lanzouo.com/i6kau2ycl31e
这里已经可以使用了。注意,浏览器现在使用了http代理,必要的时候需要关闭
操作请看演示,这样就使用本地网络了
git clone使用方法:
github设置学术加速
#全局设置git clone使用学术加速
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
#取消使用学术加速
git config --global --unset http.proxy
git config --global --unset https.proxy
三。ubuntu上使用代理
1.安装ss客户端
sudo apt update
sudo apt install python3-pip
sudo apt install shadowsocks-libev -y
2.配置并启动客户端
sudo nano /etc/shadowsocks-client.json
{
"server": "你的服务器IP地址",
"server_port": 16888,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "你配置的服务器端密码",
"timeout": 300,
"method": "aes-256-cfb"
}
3.启动ss客户端
ss-local -c /etc/shadowsocks-client.json start &
4.使用 privoxy 将 SOCKS5 转 HTTP 代理
sudo apt install privoxy -y
echo forward-socks5 / 127.0.0.1:1080 . >> /etc/privoxy/config
#重启 privoxy:
sudo systemctl restart privoxy
测试
curl --proxy 127.0.0.1:8118 http://ifconfig.me