自用国内常用镜像(20170831更新)
自用国内常用镜像(20170831更新)
游鱼彩虹 发表于12个月前
自用国内常用镜像(20170831更新)
  • 发表于 12个月前
  • 阅读 378
  • 收藏 16
  • 点赞 0
  • 评论 0

腾讯云 技术升级10大核心产品年终让利>>>   

摘要: 自用国内常用镜像(你懂的)

nuget(cnblogs国内镜像):

https://nuget.cnblogs.com/v3/index.json

php(composer国内镜像):

http://pkg.phpcomposer.com/

打开命令行窗口(windows用户)或控制台(Linux、Mac 用户),进入你的项目的根目录(也就是 composer.json 文件所在目录),执行如下命令:

composer config repo.packagist composer https://packagist.phpcomposer.com

nodejs(npm国内镜像):

https://npm.taobao.org/
npm set registry=https://registry.npm.taobao.org # 注册模块镜像

npm set disturl=https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像

npm set chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver # chromedriver 二进制包镜像
npm set operadriver_cdnurl=https://npm.taobao.org/mirrors/operadriver # operadriver 二进制包镜像
npm set phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs # phantomjs 二进制包镜像
npm set sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ # node-sass 二进制包镜像
npm set electron_mirror=https://npm.taobao.org/mirrors/electron/ # electron 二进制包镜像

npm set selenium_cdnurl=http://npm.taobao.org/mirrors/selenium
npm set node_inspector_cdnurl=https://npm.taobao.org/mirrors/node-inspector

ruby(gem国内镜像):

https://gems.ruby-china.org/
https://ruby.taobao.org/

gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
bundle config mirror.https://rubygems.org https://gems.ruby-china.org

golang(第三方包下载地址):

http://golangtc.com/download/package

阿里云的maven镜像:

maven { url 'http://maven.aliyun.com/mvn/repository/' }

linux(国内镜像):

http://mirrors.aliyun.com/

deb http://mirrors.aliyun.com/dotdeb jessie all
deb-src http://mirrors.aliyun.com/dotdeb jessie all

ubuntu:

git: sudo add-apt-repository ppa:git-core/ppa
php7: sudo add-apt-repository ppa:ondrej/php
wine: sudo add-apt-repository ppa:ubuntu-wine/ppa
python: sudo add-apt-repository ppa:fkrull/deadsnakes
ansible: sudo add-apt-repository ppa:ansible/ansible

postgresql:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main

 

mariadb(用的韩国镜像):

sudo apt-get install python-software-properties

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db 
sudo add-apt-repository 'deb [arch=amd64,i386] http://ftp.kaist.ac.kr/mariadb/repo/10.1/debian wheezy main'

nginx:

wget -O - http://nginx.org/keys/nginx_signing.key | sudo apt-key add -
echo 'deb http://nginx.org/packages/ubuntu/ trusty nginx' | sudo tee /etc/apt/sources.list.d/nginx.list
echo 'deb-src http://nginx.org/packages/ubuntu/ trusty nginx' | sudo tee -a /etc/apt/sources.list.d/nginx.list

chrome(国内下载地址):

https://api.shuax.com/tools/getchrome

git-for-windows(国内镜像):

https://npm.taobao.org/mirrors/git-for-windows/

python(国内镜像):

http://mirrors.sohu.com/python/

 

标签: 国内镜像
共有 人打赏支持
粉丝 8
博文 33
码字总数 1819
×
游鱼彩虹
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: