Summary of various domestic images encountered in Fabric deployment

Table of contents

The method of modifying Ubuntu's apt-get source to a domestic mirror source

git acceleration proxy

docker domestic image (Ali)

go get domestic agent (Qiniuyun)

windows npm source

windows nvm source


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.sh

Note: For details, please visit https://ghproxy.com/

docker domestic image (Ali)

You need to register your account in Alibaba Cloud. Alibaba Cloud Login- Welcome to Alibaba Cloud, a safe and stable cloud computing service platform. Welcome to Alibaba Cloud, the world's leading cloud computing and artificial intelligence technology company. Enterprises, developers and government agencies provide cloud computing basic services and solutions. Alibaba Cloud cloud computing, security, big data, artificial intelligence, enterprise applications, Internet of Things and other cloud computing services. https://account.aliyun.com/login/login.htm

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/

Guess you like

Origin blog.csdn.net/m0_61970067/article/details/123410331