虚拟机使用宿主机ssr

虚拟机内系统设置

设置代理IP为宿主机的IP地址

SSR设置

git设置代理:

git config --global http.proxy http.proxy 'socks5://127.0.0.1:1080'

git config --global http.proxy https.proxy 'socks5://127.0.0.1:1080'

删除:

git config --global --unset http.proxy

git config --global --unset https.proxy

ubuntu上设置git代理:

~/.gitconfig文件

curl代理设置:

~/.bashrc中添加一行:

alias curl="curl -x {your_proxy_host}:{proxy_port}"      花括号替换为代理

迅雷代理:

设置中心->高级设置->下载代理->使用自定义代理服务器,然后在代理管理里添加,服务器127.0.0.1,端口1080

猜你喜欢

转载自blog.csdn.net/yangxun983323204/article/details/81475413