Hyperledger Fabric快速上手
Posted xlongwei
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hyperledger Fabric快速上手相关的知识,希望对你有一定的参考价值。
安装go
curl -O https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
tar -xvf go1.8.linux-amd64.tar.gz && mv go /usr/local
yum install -y libsnappy-dev zlib1g-dev libbz2-dev libltdl-dev libtool glibc-static libtool-ltdl-devel
修改环境变量:vi /etc/profile,完成后source /etc/profile
export GOROOT=/usr/local/go
export GOPATH=/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
常用工具
go get github.com/golang/protobuf/protoc-gen-go \
&& go get github.com/kardianos/govendor \
&& go get github.com/golang/lint/golint \
&& go get golang.org/x/tools/cmd/goimports \
&& go get github.com/onsi/ginkgo/ginkgo \
&& go get github.com/client9/misspell/cmd/misspell \
&& go get github.com/AlekSi/gocov-xm
安装docker和docker-compose
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
yum install docker-ce
docker run hello-world
curl -L https://github.com/docker/compose/releases/download/1.15.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
获取fabric和相关工具
mkdir -p $GOPATH/src/github.com/hyperledger
cd $GOPATH/src/github.com/hyperledger
git clone
以上是关于Hyperledger Fabric快速上手的主要内容,如果未能解决你的问题,请参考以下文章
HyperLedger/Fabric SDK使用Docker容器镜像快速部署上线
❤️区块链Hyperledger Fabric 老版本 1.1.0 快速部署安装 教程合集❤️