Table of contents
The method of modifying Ubuntu's apt-get source to a domestic mirror source
go get domestic agent (Qiniuyun)
The method of modifying Ubuntu's apt-get source to a domestic mirror source
1. Backup the original file
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2. Edit the source list file
sudo vim /etc/apt/sources.list
3. Delete the original list and add The following content (Mirror source of University of Science and Technology of China)
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors. ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
4、运行sudo apt-get update
git acceleration proxy
git clone https://ghproxy.com/https://github.com/hyperledger/fabric-ca.git
curl -O https://ghproxy.com/https://github.com/hyperledger/fabric/blob/main/scripts/bootstrap.shNote: For details, please visit https://ghproxy.com/
docker domestic image (Ali)
vi /etc/docker/daemon.json
//Add the following code
{ "registry-mirrors": ["https://<code segment>.mirror.aliyuncs.com"] }
service docker restart
go get domestic agent (Qiniuyun)
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
windows npm source
npm config set registry=http://registry.npm.taobao.org
npm config get registry
windows nvm source
Find the settings.txt in the nvm installation directory and add the following command:
node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/