wsl查看host ip用脚本试试查看具体当下宿主机和wsl自身不同的两个ip或者
分配固定ip
或者cmd用ipconfig看或者localhost(127.0.0.1),然后区分socks5还是http协议,然后查看代理port即可。
CFS为例的话,
export http_proxy="http://172.29.112.1:7890"
export https_proxy="http://172.29.112.1:7890"git config --global http.proxy 'http://172.29.112.1:7890'git config --global https.proxy 'http://172.29.112.1:7890'
留空恢复
http_proxy=
https_proxy=
查看修改恢复git代理
git config --global http.proxy 'http://172.29.112.1:7890'git config --global https.proxy 'http://172.29.112.1:7890'
恢复
git config --listgit config --global --edit
git config --global --unset http.proxy
git config --global --unset https.proxy
windows+R执行perfmon -res
看端口占用1.查看某个端口是否被占用打开命令行,输入:netstat -ano |findstr "20880"2.查看端口被哪个服务占用tasklist | findstr 1180注:ping是ICMP协议,不是TCP/UDP协议,ping不走也无法走代理。
即使代理设置成功,ping也是无效的,curl可以
curl -v google.com
cmd用set即可,不用的话关掉当前窗口就会恢复,想永久使用就加到.bashrc或者windows开机自启执行脚本批处理bat。
socks5://127.0.0.1:13569 这是 socks5 代理, 不是 http 代理.
根据代理软件使用协议sock5 http不同,使用的端口而不同,可以perfmon -res查询什么的,搜索问人之类的什么的
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)