fabric-smaple部署
生活随笔
收集整理的這篇文章主要介紹了
fabric-smaple部署
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
sudo apt update sudo apt install gitsudo apt install curlsudo apt install docker.iosudo apt install docker-compose
下載go wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz 解壓go文件 sudo tar -zxvf go1.10.3.linux-amd64.tar.gz -C /usr/local/ 配置go的環境變量 sudo vim /etc/profile
export GOPATH=$HOME/go export GOROOT=/usr/local/go export PATH=$GOROOT/bin:$PATH
source /etc/profile
然后
go env查看環境是否配置成功
創建bootstrap.sh文件,然后拷貝下面的內容到該文件下 https://github.com/hyperledger/fabric/blob/master/scripts/bootstrap.sh chmod +x bootstrap.sh
賦予權限
chmod +x bootstrap.sh
? sudo ./bootstrap.sh 1.2.0
該腳本會把鏡像,跟編譯文件都下載好,腳本下完后,進入到cd fabric-samples/first-network
執行
sudo ./byfn.sh up
關閉 sudo ./byfn.sh down
?
轉載于:https://www.cnblogs.com/sfgoto/p/10729723.html
總結
以上是生活随笔為你收集整理的fabric-smaple部署的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 26_练习2_用户搜索_初始化显示(静态
- 下一篇: Spring AOP Capabilit