WSL2中使用代理
众所周知,使用git、apt等都非常的慢,现在使用windows10的wsl2安装了一个ubuntu,现在要安装一些程序,需要代理才能正常下载
sudo nano .bashrc
export hostip=$(cat /etc/resolv.conf |grep "nameserver" |cut -f 2 -d " ")
export all_proxy="socks5://${hostip}:10808"
source .bashrc
sudo nano .bashrc
export hostip=$(cat /etc/resolv.conf |grep "nameserver" |cut -f 2 -d " ")
export all_proxy="socks5://${hostip}:10808"
source .bashrc