Skip to content

Instantly share code, notes, and snippets.

@cxjava cxjava/chocolatey
Created Aug 23, 2014

Embed
What would you like to do?
chocolatey 代理设置
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
You can’t perform that action at this time.