区块链Hyperledger Fabric2.2 环境搭建

最新超详细的 Hyperledger Fabric2.2 环境搭建 部署_windows上fabric2.2环境搭建和测试网络-CSDN博客

Ubuntu系统下配置安装区块链Hyperledger Fabric(新手小白篇)-CSDN博客

注意

需要修改fabric/scripts(该目录是前文Fabric源码解压之后形成的目录,这里是一种简化写法。下同)文件夹下的bootstrap.sh文件,将BINARIES从true变为false

1)compose-up用的是apt安装

2)进行到最后一步了,但是docker报错

重来吧

step 1: 安装必要的一些系统工具

sudo apt-get update

sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common

step 2:安装GPG证书:

curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

step 3:写入软件源信息

sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

step 4:更新并安装Docker-CE

sudo apt install docker.io

然后添加权限

sudo usermod -aG docker $USER

newgrp docker

3)运行 sudo ./network.sh up很慢很慢,于是手动下载

hyperledger-fabric-ca-linux-amd64-1.5.12.tar.gz

hyperledger-fabric-linux-amd64-2.5.9.tar.gz

然后解压

4)下载docker镜像是最慢的,卡住了,换源

复制代码
sudo vim /etc/docker/daemon.json
# 添加
{
  "registry-mirrors": [
    "https://hub-mirror.c.163.com", # 网易
    "https://ustc-edu-cn.mirror.aliyuncs.com", # 阿里云
    "https://mirror.baidubce.com" # 百度
    "https://dockerhub.xianfish.site",
    "https://hub-mirror.c.163.com"
  ]
}

# reload daemon & restart docker
sudo systemctl daemon-reload
sudo systemctl docker-restart

# 查看docker信息
docker info

或者直接

docker pull docker.k-one.eu.org/hyperledger/fabric-peer

docker pull hyperledger/fabric-orderer:2.5.9

docker pull hyperledger/fabric-ccenv:2.5.9

docker pull hyperledger/fabric-ca:1.5.12

相关推荐
kida_yuan5 天前
【以太来袭】4. Geth 原理与解析
区块链
blockcoach7 天前
刘教链|金融市场中的物理学规律:平方根定律
区块链
碳链价值7 天前
吴忌寒清仓比特币背后
区块链
blockcoach7 天前
刘教链|BTC的时光机
区块链
lsrsyx7 天前
TEBBIT:以安全、创新与服务,重塑您的数字资产交易体验
安全·区块链
lsrsyx7 天前
Icoin:当市场归于理性,强者浮出水面
区块链
反向跟单策略8 天前
期货反向跟单-2025年回顾及2026年展望
大数据·人工智能·学习·数据分析·区块链
kida_yuan8 天前
【以太来袭】3. Geth 知识点归纳
区块链
OneBlock Community8 天前
Polkadot Hub 已实现 2 秒出块,下一步 0.5 秒!
区块链