程序员科学上网

一个程序员的科学上网之路

这里做一个自己常用镜像汇总,免得到时候换环境时又要导出搜索.作为一个新程序员还是到处要特别感谢aliyun提供各自各种镜像.

1.一个稳定的hosts发布github

一个稳定的hosts发布github

2.docker MIRROR

这里需要登录aliyun console获取自己的镜像地址,然后修改/etc/docker/daemon.json

{
 "registry-mirrors":["https://zi3aaitc.mirror.aliyuncs.com","http://31623a4b.m.daocloud.io"]
}

3.maven mirror

修改 $MAVEN_HOME/conf/settings.xml

<mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>*</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>

4. apt-get mirror

修改 etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
然后运行
sudo apt-get update
sudo apt-get upgrade

5. nodejs mirror

npm config set registry https://registry.npm.taobao.org/