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

Commitc5f0d46

Browse files
committed
fix bug
1 parent6e97457 commitc5f0d46

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Shell> peer chaincode invoke -o orderer.example.com:7050 -C $CHANNEL_NAME -n e
175175

176176
- 一、基础环境的搭建步骤
177177
- 1.1 [hyperledger1.0分布式环境搭建](doc/1.1hyperledger1.0分布式环境搭建.md)
178-
178+
- 1.2[Fabric-CA1.0模块的搭建与使用](1.2、Fabric-CA1.0模块的搭建与使用.md)
179179

180180

181181

‎doc/1.1、hyperledger1.0分布式环境搭建.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Shell> git clone https://github.com/hyperledger/fabric-samples.git # 下载演
2424
[root@localhost fabric]# tree
2525
.
2626
└── bin
27-
├── configtxgen
27+
├── configtxgen#生成组织配置文件以及初始创世纪块时需要用到
2828
├── configtxlator
29-
├── cryptogen
29+
├── cryptogen# 生成超级账本中组织结构管理信任关系证书的工具,在初期实验是比较使用到,后期上线面对联盟链场景中拓展则需要专业的CA组件
3030
├── get-byfn.sh
3131
├── get-docker-images.sh
3232
├── orderer# 排序服务实现二进制文件
@@ -36,6 +36,10 @@ Shell> git clone https://github.com/hyperledger/fabric-samples.git # 下载演
3636
##三、分布式环境搭建步骤
3737

3838

39+
###3.1、
40+
41+
42+
3943

4044
##四、参考资料
4145

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
本篇主要介绍`Fabric-CA`模块的搭建与使用,本篇使用的版本是`Fabric-CA1.0.6`版本,由于官方的项目还处在不断的快速迭代当中所以建议在配置和使用时还是按照指定的版本来使用,以免遇见不必要的问题
2+
3+
4+
---------------------
5+
6+
#一、Fabric-CA模块基本作用与功能构架
7+
8+
9+
#二、基本环境的准备与部署
10+
11+
##2.1、安装依赖包以及MySQL数据库
12+
13+
通过官网的介绍我们可以知道,默认情况下`Fabric-CA`模块启动时默认使用`sqllite`作为存储元数据的数据库,但是在实际的生产过程中,我们不会使用`sqllite`作为生产环境的库进行使用的,一般情况下会配置为`MySQL`或者`PG`,此处本文以`MySQL`为例进行配置,笔者在官方的`Github`中为找到官方编译好的二进制包,所以在部署前,我们需要需要自行编译`fabric-ca`的二进制包,此处需要一点点`Go`语言的基础支持,了解什么是`GOPATH`等,关于`GO`的编译环境大家可以搜索其他资料,此处不在赘述。
14+
```bash
15+
Shell> yum install libtool libtool-ltdl-devel#安装编译时依赖包
16+
Shell>cd${GOPATH}/src
17+
Shell> mkdir -p github.com/hyperledger#创建编译源码的目录位置,网上很多的资料或者官方都会指导使用go get -u 的方式,但是此处我们只需要使用fabric-ca 1.0.6的版本,所以此处我们只能先clone一下源码然后使用git checkout我们想要的版本
18+
Shell>cd github.com/hyperledger
19+
Shell> git clone https://github.com/hyperledger/fabric-ca.git
20+
Shell> git checkout v1.0.6#检出我们想要的版本,此处的方式不是很优雅,应该加上-b参数新建一个分支去做,但是我们又不修改源码所以不优雅就不优雅了
21+
Shell>cd fabric-ca/cmd/fabric-ca-server
22+
Shell> go install#编译安装fabric-ca-server,编译完成后可运行的二进制文件在$GOPATH/bin目录下
23+
Shell>cd ../fabric-ca-server
24+
Shell> go install#编译fabric-ca-client
25+
```
26+
27+
28+
29+
30+
31+
#三、Fabric-CA的部署
32+
33+
34+
35+
36+
37+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp