apt pip docker各类软件源镜像配置
docker
创建或修改 /etc/docker/daemon.json 文件,修改为如下形式
vi /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
systemctl restart docker.service
ubuntu apt
修改文件/etc/apt/sources.list
sed "s/archive.ubuntu.com/mirrors.cloud.tencent.com/" /etc/apt/sources.list -i
pip
mkdir ~/.pip //先创建.pip文件夹,不然vim无法保存
vim ~/.pip/pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
openwrt
添加opkg wget https支持 opkg install wget ; opkg install ca-certificates
cat /etc/opkg/distfeeds.conf #镜像配置文件
cd /etc/opkg
sed "s/downloads.openwrt.org/mirrors.cloud.tencent.com\/openwrt/" /etc/opkg/distfeeds.conf -i
安装中文界面
opkg install luci-i18n-base-zh-cn
ff