alpine linux 国内镜像源
配置文件Alpine的源文件为:/etc/apk/repositories默认的源地址为:http://dl-cdn.alpinelinux.org/,修改地址可以编辑源文件 /etc/apk/repositories。国内镜像及修改方法采用国内阿里云的源,文件内容为:https://mirrors.aliyun.com/alpine/v3.6/main/https://mirrors.aliyun.com/alpine/v3.6/community/命令:sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories如果采用中国科技大学的源,文件内容为:https://mirrors.ustc.edu.cn/alpine/v3.6/main/https://mirrors.ustc.edu.cn/alpine/v3.6/community/命令:sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories如果采用中国科技大学的源,文件内容为:https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.6/main/https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.6/community/命令:sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
页:
[1]