Apt-get, Npm,Composer, Docker 等国内加速镜像大集合

常常为了等 Npm install , Composer update 完成, 以为喝杯咖啡回来就完成了, 或者以为晚上下班不关电脑,难道明天回来上班时还没完成! 然后第二天来了 ... 生命岂能浪费在此! 来,我们用国内镜像加速: Apt-get 一行命令备份apt/sources.list并加入 阿里云和 163 加速镜像: sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ echo "deb http://mirrors.aliyun.com/ubuntu/ wily main restricted universe multiverse" >/etc/apt/sources.list && \ echo "deb http://mirrors.aliyun.com/ubuntu/ wily-security main restricted universe multiverse" >>/etc/apt/sources.list && \ echo "deb http://mirrors.aliyun.com/ubuntu/ wily-updates main restricted universe multiverse" >>/etc/apt/sources.list && \ echo "deb http://mirrors.aliyun.com/ubuntu/ wily-proposed

Continue reading →