公司内网有一台服务器,我在上面利用jenkins搭建持续集成的环境。由于是内网不能访问互联网,于是需要设置代理服务器达到上网的目的。
代理(支持curl 、wget 、svn、yum等)
export http_proxy=http://172.16.12.249:808/
export https_proxy=http://172.16.12.249:808/
设置npm代理
vi ~/.npmrc
registry=http://registry.npm.taobao.org
proxy=http://172.16.12.249:1087
https-proxy=http://172.16.12.249:1087
strict-ssl=false