Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d3e456

Browse files
committed
fix bug
1 parentfb6d06f commit2d3e456

File tree

3 files changed

+56
-1
lines changed

3 files changed

+56
-1
lines changed

‎README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,20 @@ Shell> peer chaincode invoke -o orderer.example.com:7050 -C $CHANNEL_NAME -n e
168168

169169
##四、调用结果展示
170170

171+
![](https://github.com/liuwenru/FabricJavaSDKExamples/blob/master/doc/img/QQ20171214-163532.png)
172+
173+
174+
##五、学习笔记目录列表
175+
176+
177+
178+
179+
180+
- 一、基础环境的搭建步骤
181+
- 1.1 [hyperledger1.0分布式环境搭建](doc/1.1hyperledger1.0分布式环境搭建.md)
182+
183+
184+
185+
186+
171187

172-
![](https://github.com/liuwenru/FabricJavaSDKExamples/blob/master/doc/img/QQ20171214-163532.png)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#hyperledger1.0分布式环境搭建
2+
3+
本篇主要介绍`hyperledger1.0`基本环境的搭建,看了一些现有的教程啥的,都是基于官方的一键脚本运行的,脚本里面基本都已经写好了如何配置参数,甚至自动组建区块链的环境都已经使用脚本做好的,本篇笔者通过阅读官方的脚本逐步搭建出一个多个节点参与非容器环境的超级账本环境。至于相关区块链的原理以及超级账本所使用的组件功能配置,在后面的学习笔记中会进行记录与解释。
4+
5+
##一、基本环境简介
6+
7+
![](doc/img/区块链网络构架图.png)
8+
9+
10+
11+
如上图所示,在实验环境中我们将实现如上图所示的区块链结构,因为是实验环境,资源有限,所以在排序服务我们先暂时使用单节点实现,先验证功能。如上图所示,图中的`组织1``组织2`就是组成联盟链中的成员。为了演示以及验证超级账本中的各个节点的功能,我们可以在每一个组织节点中放入两个节点。
12+
13+
##二、基本环境准备
14+
15+
超级账本使用`Go`语言实现,`Go`语言会将最后的程序代码编译为二进制文件,所以在环境上我们需要在环境中安装`docker`(因为超级账本的链码背书环节需要用到docker环境),详细的环境依赖可以参考[官网连接](http://hyperledger-fabric.readthedocs.io/en/v1.0.6/prereqs.html#), 因为本实验的环境是基于非容器环境的,意思是超级账本本身是不运行在容器中的(但是在执行链码时却是运行在docker环境中的,下面会有演示),所以先要准备超级账本编译好的二进制包。官方给我们提供了一个下载脚本完成。
16+
17+
```bash
18+
Shell> curl -sSL https://goo.gl/kFFqh5| bash -s 1.0.6#该版本是本文在编写时可以使用的版本
19+
Shell> git clone https://github.com/hyperledger/fabric-samples.git# 下载演示工程目录,我们要搭建的环境其实就是自己阅读一遍这里的代码然后自己模拟一下这个搭建过程
20+
```
21+
22+
##三、分布式环境搭建步骤
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
##四、参考资料
34+
35+
36+
37+
38+
39+
40+

‎doc/img/区块链网络构架图.png

137 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp