CentOS 8.0 install Hyperledger Fabric 2.0.0

Netkiller Blockchain Handbook#

Mr. Neo Chan, 陈景峰(BG7NYT)

24.4. CentOS 8.0 install Fabric 2.0.0

24.4.1. CentOS 8 initialization###

[ root@localhost ~]# dnf update -y

Disable firewall

[ root@localhost ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

24.4.2. Installation dependent commands and languages###

if[!-f /usr/bin/bunzip2 ];then
 dnf install -y bzip2
fi

if[!-f /usr/bin/git ];then
 dnf install -y git
fi

if[!-f /usr/bin/go ];then
 dnf install -y golang
fi
curl -L --retry 5--retry-delay 3 https://github.com/hyperledger/fabric/releases/download/v1.4.6/hyperledger-fabric-linux-amd64-1.4.6.tar.gz | tar xz
curl -L --retry 5--retry-delay 3 https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-linux-amd64-1.4.6.tar.gz | tar xz

mkdir -p /srv/hyperledger/fabric
mv bin config /srv/hyperledger/fabric
PATH=$PATH:/srv/hyperledger/fabric/bin

24.4.3. Install Docker

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

dnf install -y docker-ce

systemctl enable docker
systemctl start docker

Install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)"-o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose		

24.4.4. Install Fabric 2.0.0

IMAGES=(ca peer orderer couchdb ccenv kafka zookeeper tools javaenv)		
FABRIC_TAG=latest
for IMAGE in ${IMAGES};do
 echo "==> FABRIC IMAGE: $IMAGE"
 echo
 docker pull hyperledger/fabric-$IMAGE:$FABRIC_TAG
 echo
done		

Check the mirror according to completion

[ root@localhost src]# docker images
REPOSITORY                     TAG                 IMAGE ID            CREATED             SIZE
hyperledger/fabric-zookeeper   latest              21e55e9a2862        12 days ago         276MB
hyperledger/fabric-kafka       latest              28a93b376dbe        12 days ago         270MB
hyperledger/fabric-couchdb     latest              03ac1654afc5        12 days ago         261MB
hyperledger/fabric-ca          latest              3b96a893c1e4        2 weeks ago         150MB
hyperledger/fabric-tools       latest              0f9743ac0662        2 weeks ago         1.49GB
hyperledger/fabric-ccenv       latest              191911f4454f        2 weeks ago         1.36GB
hyperledger/fabric-orderer     latest              84eaba5388e7        2 weeks ago         120MB
hyperledger/fabric-peer        latest              5a52faa5d8c2        2 weeks ago         128MB		

Recommended Posts

CentOS 8.0 install Hyperledger Fabric 2.0.0
1.5 Install Centos7
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8
CentOS 7 install Java 1.8
CentOS 6 install Docker
centos 6.5 install zabbix 4.4
Centos8 install Docker
CentOS6.8 install python2.7
CentOS install nodejs 8
CentOS6.5 install GNS3
centos 7.5 install mysql5.7.17
Centos7 install MySQL8.0-manual
CentOS7 install Kubernetes 1.16.3
VirtualBox install centos7
centos7 install lamp
Install centos7 and connect
Install Docker on Centos7
Centos7 install docker-18.x original