hyperledger-fabric1.4

1.安装curl最新版本

1
2
3
4
5
6
7
wget https://curl.haxx.se/download/curl-7.66.0.tar.gz
tar -zxvf curl-7.66.0.tar.gz
cd curl-7.66.0
yum install gcc gcc-c++ -y
./configure
make -j8 && make install
curl --version

2.安装docker

更新yum包

1
yum update

安装所需要软件包

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

设置yum源

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

查看仓库中的docker版本,安装特定版本

1
yum list docker-ce --showduplicates | sort -r

安装docker,docker-ce-版本号

1
yum install docker-ce-17.12.1.ce

启动docker

1
systemctl start docker

加入开机启动

1
systemctl enable docker

验证安装是否成功,若有client和server两部分说明安装启动成功

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@localhost ~]# docker version 
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:15:20 2018
OS/Arch: linux/amd64

Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:17:54 2018
OS/Arch: linux/amd64
Experimental: false

3.安装docker-compose

安装python-pip

1
2
3
yum -y install epel-release
pip install --upgrade pip
yum install -y python-pip

安装docker-compose

1
2
pip install docker-compose
docker-compose --version
1
2
3
4
5
[root@localhost ~]# docker-compose version
docker-compose version 1.24.1, build 4667896
docker-py version: 3.7.3
CPython version: 2.7.5
OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017

4.安装golang

1
2
3
4
5
6
7
8
wget https://gomirrors.org/dl/go/go1.11.10.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.11.10.linux-amd64.tar.gz
vim /etc/profile
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=/opt/gopath
source /etc/profile
go version

最后更新: 2019年10月21日 16:17

原始链接: https://silence-linhl.github.io/blog/2019/10/21/fabric1-4-env/

× 请我吃糖~
打赏二维码