超级账本结构在哪里存储区块链的数据库? [英] Where does hyperledger fabric store the database for the blockchain?
问题描述
我在具有单个验证节点的本地计算机上设置了超级账本结构网络.我正在开发一个链码,并想清除我的区块链.我已经阅读了超级账本结构将数据库存储在/var/hyperledger下.但是,我在/var下看不到此hyperledger目录.此目录还有其他位置吗?我的开发平台是MAC,我正在使用docker-compose启动我的Hyperledger Fabric网络.
I have hyperledger fabric network setup on my local machine with a single validating node. I am developing a chaincode and would like to clear my blockchain. I have read that the hyperledger fabric stores the database under /var/hyperledger. However, I do not see this hyperledger directory under /var. Is there another location for this directory? My development platform is MAC and I am using docker-compose to start my hyperledger fabric network.
推荐答案
Hyperledger Fabric将数据库存储在验证对等方的文件系统中的/var/hyperledger/production/db中.您可以使用docker exec -it substitute_container_name bash
之类的命令导航到验证对等文件系统.我不知道数据库的其他位置.如果说明位于 https://hub.docker.com/r/ibmblockchain/fabric -peer/用于使用Hyperledger Docker映像,则数据库位置应为/var/hyperledger/production/db.
The Hyperledger Fabric stores the database in /var/hyperledger/production/db within the file system for the validating peer. You can navigate to the validating peer file system by using a command like docker exec -it substitute_container_name bash
. I am not aware of another location of the database. If the instructions at https://hub.docker.com/r/ibmblockchain/fabric-peer/ for using Hyperledger Docker images are followed, then the database location should be /var/hyperledger/production/db.
这篇关于超级账本结构在哪里存储区块链的数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!