标签:mkdir settings c/s setting group mirror str 启动 ref
maven仓库用过的人都知道,国内有多么的悲催。还好有比较好用的镜像可以使用,尽快记录下来。速度提升100倍。
http://maven.aliyun.com/nexus/#view-repositories;public~browsestorage
在maven的settings.xml 文件里配置mirrors的子节点,添加如下mirror
<mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-mirror=https://lzbbz7k2.mirror.aliyuncs.com\"" | sudo tee -a /etc/default/docker sudo service docker restart
sudo mkdir -p /etc/systemd/system/docker.service.d sudo tee /etc/systemd/system/docker.service.d/mirror.conf <<-‘EOF‘ [Service] ExecStart= ExecStart=/usr/bin/docker daemon -H fd:// --registry-mirror=https://lzbbz7k2.mirror.aliyuncs.com EOF sudo systemctl daemon-reload sudo systemctl restart docker
标签:mkdir settings c/s setting group mirror str 启动 ref
原文地址:http://www.cnblogs.com/YDDMAX/p/6103374.html