安裝文檔:http://www.cnblogs.com/studyzy/p/7437157.htmlhtml
安裝上面的文檔安裝成功,可是過程當中遇到一些問題。git
1、go的源碼包可能下載不下來,由於被牆,go官方提供瞭如下的安裝方式,能夠直接apt安裝golang-1.9github
$ sudo add-apt-repository ppa:gophers/archive $ sudo apt update $ sudo apt-get install golang-1.9-go Note that golang-1.9-go puts binaries in /usr/lib/go-1.9/bin. If you want them on your PATH, you need to make that change yourself.
參考連接:https://github.com/golang/go/wiki/Ubuntugolang
二. 遇到這樣的問題: "transport: Error while dialing dial tcp: lookup peer1.org1.example.com on 127.0.0.11:53: no such host"; 解決方案:docker
Try this workaround: edit the generateArtifacts.sh to change the name of the generated genesis.block file to be orderer.genesis.block in the base/docker-compose-base.yaml modify the line: ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block to ../channel-artifacts/orderer.genesis.block:/var/hyperledger/orderer/orderer.genesis.block
參考鏈接:https://www.questarter.com/q/fabric-v1-orderer-container-stops-with-panic-error-27_44135041.htmltcp
三. 若是安裝步驟有問題,啓動./network_setup.sh up時報錯,解決問題後,要先make clean,再嘗試安裝,可是clean會刪除咱們下載好的docker鏡像,這不是咱們想要的,因此須要修改hyperledger/fabric/MakeFile 將第403行-docker images -q $(DOCKER_NS)/fabric-$(TARGET) | xargs -I '{}' docker rmi -f '{}'
註釋掉。而後使用下面的命令清理掉這臺server上的全部容器:this
docker ps -a|awk '{print $1}'|xargs -i docker stop {} docker ps -a|awk '{print $1}'|xargs -i docker rm {}