在Hyperledger-Composer网络上保存数据 [英] Saving data on Hyperledger-Composer network

查看:87
本文介绍了在Hyperledger-Composer网络上保存数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近几周,我已经完成了主要Hyperledger-Composer教程,并创建了一个专用网络来测试某些功能. 我注意到,如果您关闭PC或停止结构(./stopFabric),然后重新启动专用网络,它将为空.您会丢失使用其余服务器在网络中执行的所有操作(添加客户端,交易历史记录等).

I the last weeks I have completed the Principal Hyperledger-Composer tutorials and I have created a private network for testing some features. I have noticed that if you close your PC or stop the fabric (./stopFabric), and restart the private-network, it will be empty. You lose every action you perform in the network using the rest-server (add client, transaction history, etc).

是否可以保存操作?我是否必须使用多个组织网络"( https://hyperledger.github.io/composer/tutorials/deploy-to-fabric-multi-org )来维护我的数据状态? 我必须始终保持在线状态,以免丢失数据?

Is there a way for saving my actions? Do I have to use a "multiple-organization-network" (https://hyperledger.github.io/composer/tutorials/deploy-to-fabric-multi-org) for maintaining the status of my data? I have to maintain always online a peer for not loosing my data?

推荐答案

请阅读

please read How to restart the fabric composer without losing the existing data? - you need locate the correct docker-compose.yaml file(s) and (from the directory or providing the path the appropriate command below) preserve them using:

  • 运行docker-compose stop停止Fabric容器
  • 运行docker-compose start以从上次中断的地方重新启动.
  • Run docker-compose stop to stop the Fabric Containers
  • Run docker-compose start to restart where you left off.

这篇关于在Hyperledger-Composer网络上保存数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆