Mirrors

Ubuntu

https://lug.ustc.edu.cn/wiki/mirrors/help/ubuntu

sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

PyPI

https://lug.ustc.edu.cn/wiki/mirrors/help/pypi

index-url = https://mirrors.ustc.edu.cn/pypi/web/simple

Debian

https://lug.ustc.edu.cn/wiki/mirrors/help/debian

sudo sed -i 's/httpredir.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

Ruby Gems

https://ruby.taobao.org/

http://gems.ruby-china.org/

$ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
$ gem sources -l
*** CURRENT SOURCES ***

https://ruby.taobao.org
# 请确保只有 ruby.taobao.org
$ gem install rails
$ bundle config mirror.https://rubygems.org https://ruby.taobao.org
END

Published @ Aug 15, 2017

章节导航: