Centos7部署Fabric2.3

本文档详细介绍了如何在Centos7上部署Hyperledger Fabric 2.3,包括环境搭建(yum源设置、git、curl、docker、docker-compose和Go环境的安装),Fabric的安装,启动测试网络,以及遇到的问题和解决方案,如防火墙配置、链码安装错误等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

文章目录

目录

文章目录

前言

一、环境搭建

1.1 yum源设置

1.2 git安装

1.3 curl安装

1.4 docker安装 

1.5 安装docker-compose

1.6 Go环境安装

二、安装Fabric

三、启动Fabric测试网

四、遇到的问题 

总结

参考博客


前言

本人也是站在前人的肩膀上学习开发,借鉴前人的基础,使用阿里云服务器搭建自己的Fabric网络,记录自己的学习过程

一、环境搭建

1.1 yum源设置

1.备份本地yum源

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base

2.设置aliyun源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

3.清理缓存

yum clean all

4.更新yum源

yum update

1.2 git安装

yum install git -y

1.3 curl安装

yum install curl -y

1.4 docker安装 

1.卸载docker的旧版本

yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine

2.安装依赖包

yum install -y yum-utils device-mapper-persistent-data lvm2

3.添加docker yum源

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

4.安装docker

yum install docker-ce

5.启动docker

systemctl start docker

6.设置开机自启docker 

systemctl enable docker
systemctl list-unit-files --all --type=service | grep docker

7.查看docker运行状况

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值