Created
August 23, 2014 02:27
-
-
Save cxjava/eebe0741d5158cc9b8a6 to your computer and use it in GitHub Desktop.
chocolatey 代理设置
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/da9l/2852270 设置代理 | |
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$wc=new-object net.webclient; $wp=[system.net.WebProxy]::GetDefaultProxy(); $wp.UseDefaultCredentials=$true; $wc.Proxy=$wp; iex ($wc.DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
设置 代理 | |
http://escapologist.wordpress.com/2013/02/27/nuget-and-chocolatey-behind-a-proxy/ | |
.\nuget config -Set http_proxy=127.0.0.1:9087 | |
.\nuget config -Set https_proxy=127.0.0.1:9087 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
感谢