當前位置:
首頁 >
fabric-smaple部署
發(fā)布時間:2025/7/25
65
豆豆
生活随笔
收集整理的這篇文章主要介紹了
fabric-smaple部署
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
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的環(huán)境變量 sudo vim /etc/profile
export GOPATH=$HOME/go export GOROOT=/usr/local/go export PATH=$GOROOT/bin:$PATH
source /etc/profile
然后
go env查看環(huán)境是否配置成功
創(chuàng)建bootstrap.sh文件,然后拷貝下面的內(nèi)容到該文件下 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
執(zhí)行
sudo ./byfn.sh up
關閉 sudo ./byfn.sh down
?
轉(zhuǎn)載于:https://www.cnblogs.com/sfgoto/p/10729723.html
總結(jié)
以上是生活随笔為你收集整理的fabric-smaple部署的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 26_练习2_用户搜索_初始化显示(静态
- 下一篇: Selector