我正在尝试在树莓派上部署 super 账本结构,但它不起作用。我正在寻找一些教程,但我没有找到,有人刚刚做了吗?
最佳答案
上次我尝试在 RPi 上运行 Hyperledger Fabric 时,我准备了以下说明:
https://www.raspberrypi.org/downloads/raspbian/
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install git curl gcc libc6-dev libltdl3-dev python-setuptools -y
sudo -H pip install pip --upgrade
curl -sSL get.docker.com | shsudo usermod -aG docker pisudo pip install docker-compose
mkdir -p /home/pi/golang && mkdir -p /home/pi/golang/src/github/hyperledger/
export GOPATH=/home/pi/golang
export PATH=/usr/local/go/bin:$PATH
/home/pi/golang/src/github/hyperledger/
git clone https://github.com/hyperledger/fabric-baseimage.git
/home/pi/golang/src/github/hyperledger/
git clone https://github.com/hyperledger/fabric.git
cd ~/golang/src/github/hyperledger/fabric-baseimage && make docker-local
--- a/peer/core.yaml
+++ b/peer/core.yaml
@@ -68,7 +68,6 @@ peer:
# Gossip related configuration
gossip:
- bootstrap: 127.0.0.1:7051
# Use automatically chosen peer (high avalibility) to distribute blocks in channel or static one
# Setting this true and orgLeader true cause panic exit
useLeaderElection: false
@@ -280,7 +279,7 @@ vm:
Config:
max-size: "50m"
max-file: "5"
- Memory: 2147483648
+ Memory: 16777216
和
--- a/core/container/util/dockerutil.go
+++ b/core/container/util/dockerutil.go
@@ -45,6 +45,7 @@ func NewDockerClient() (client *docker.Client, err error) {
// and GOARCH here.
var archRemap = map[string]string{
"amd64": "x86_64",
+ "arm": "armv7l",
}
func getArch() string {
cd ~/golang/src/github/hyperledger/fabric && make clean peer peer-docker
~/golang/src/github/hyperledger/fabric/build/bin/
关于raspberry-pi - Raspberry pi 3 上的 Hyperledger Fabric,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45800167/