首页 > 其他 > 详细

代理配置

时间:2020-05-23 18:35:50      阅读:48      评论:0      收藏:0      [点我收藏+]

cmd代理

  cmd配置代理: set http_proxy=http://199.199.199.199:9999

  cmd清除代理:reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

 

Git代理

  Git代理配置:git config --global http.proxy http://199.199.199.199:9999
  git清除代理:
    git config --global --unset http.proxy

    git config --global --unset https.proxy

 

linux临时代理:
  export http_proxy=http://199.199.199.199:9999

  export https_proxy=http://199.199.199.199:9999

  export ftp_proxy=http://199.199.199.199:9999

 

NPM代理:

  npm 清楚代理: npm config delete proxy
  设置npm代理:
    npm config set proxy=http://199.199.199.199:9999
    npm config set registry=http://registry.npmjs.org
    npm config set https-proxy http://199.199.199.199:9999

设置淘宝镜像:npm install -g cnpm --registry=https://registry.npm.taobao.org

代理配置

原文:https://www.cnblogs.com/lovekiller1111/p/12942987.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!