赞
踩
在linux中的命令行,临时使用代理非常的方便。export ALL_PROXY=socks5://127.0.0.1:1080
那么在windows有类似的环境变量吗?答案是肯定的。
PowerShell Core 还支持可用于启用代理设置的特殊 Windows 环境变量:
$proxy='http://127.0.0.1:7890'
$ENV:HTTP_PROXY=$proxy
$ENV:HTTPS_PROXY=$proxy
精简成一行:
$ENV:ALL_PROXY ='http://127.0.0.1:7890'
《Using PowerShell Behind a Proxy Server》
http://woshub.com/using-powershell-behind-a-proxy/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。