科学上网-让终端走代理
介绍
过程
# 协议填http或socks5 export http_proxy="http://127.0.0.1:10809" export https_proxy="https://127.0.0.1:10809" export http_proxy="socks5://127.0.0.1:10808" export https_proxy="socks5://127.0.0.1:10808" # 让环境生效 source /etc/profile # ping是ICMP报文,代理不转发 # 检查终端是否处于代理状态 curl cip.ccalias setproxy='export ALL_PROXY=socks5://127.0.0.1:10808' alias unsetproxy='unset ALL_PROXY'
在windows WSL中配置代理
在windows CMD中配置代理
参考
Last updated
Was this helpful?