Hyperledger Fabric Development (1): Environment Configuration

Configure hyperledger fabric environment under macOS system

cURL

Mac comes with curl. If you need to download the latest version, you can follow the following command and add the path to the top of the system environment variable.

brew install curl

Docker & Docker Compose

Download address: https://store.docker.com/editions/community/docker-ce-desktop-mac
After downloading, you need to check the version. It is required that the docker version is not lower than 17.06.2-ce, and the docker compose version is not lower than 1.14. 0

docker --version
docker-compose --version

Go Programming Language

Download address: https://www.golangtc.com/download
Go The project is downloaded to the directory by default /usr/local. After completion, you need to add environment variables, open the configuration file vim .bash_profile, and add the following code:

export GOROOT=/usr/local/go 
export PATH=$PATH:$GOROOT/bin 
export GOPATH=$HOME/go 
export PATH=$PATH:$GOPATH/bin

Node.js & NPM

Download address: https://nodejs.org/en/download/
requires Node.jsa version no lower than 8.9

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325935702&siteId=291194637