当前位置:网站首页>(1)长安链学习笔记-启动长安链
(1)长安链学习笔记-启动长安链
2022-07-06 15:39:00 【InfoQ】
#创建学习目录
mkdir chainmaker-learn
#进入目录
cd chainmaker-learn
#下载项目源码
git clone https://git.chainmaker.org.cn/chainmaker/chainmaker-go.git
#下载证书工具源码
git clone -b v2.2.0 https://git.chainmaker.org.cn/chainmaker/chainmaker-cryptogen.git

#进入证书工具源码目录,构建
cd chainmaker-cryptogen
make

#进入到主源码的工具目录
cd chainmaker-go/tools
# 软连接chainmaker-cryptogen到tools目录下
ln -s ../../chainmaker-cryptogen/ .

chainmaker-go/scripts
prepare_pk.sh
chainmaker-go/build
#进入脚本目录
cd scripts/
#生成4个节点,一条链的配置
./prepare_pk.sh 4 1
执行脚本的时候,一路按enter默认就好
生成的证书目录在/root/chainmaker-learn/chainmaker-go/build目录下

#在scripts目录下执行脚本:
./build_release.sh

#启动长安链
$ ./cluster_quick_start.sh normal
#关闭长安链
./cluster_quick_stop.sh
#查看端口号是否启动
netstat -lptn | grep 1230

p2p
p2p
11301
rpc
rpc
12301
p2p
11301、11302、11303、11304
rpc
12301、12302、12303、12304
边栏推荐
- 同构+跨端,懂得小程序+kbone+finclip就够了!
- TDengine 社区问题双周精选 | 第二期
- Pytest unit test series [v1.0.0] [pytest execute unittest test case]
- MATLAB小技巧(27)灰色预测
- Cloud native technology container knowledge points
- Project duplicate template
- (shuttle) navigation return interception: willpopscope
- Sizeof keyword
- How does crmeb mall system help marketing?
- The application of machine learning in software testing
猜你喜欢
Cocoscreator+typescripts write an object pool by themselves
儿童睡衣(澳大利亚)AS/NZS 1249:2014办理流程
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
On file uploading of network security
Signed and unsigned keywords
机试刷题1
[launched in the whole network] redis series 3: high availability of master-slave architecture
DockerMySQL无法被宿主机访问的问题解决
Rust knowledge mind map XMIND
随机推荐
同构+跨端,懂得小程序+kbone+finclip就够了!
允许全表扫描 那个语句好像不生效set odps.sql.allow.fullscan=true;我
Interview question: AOF rewriting mechanism, redis interview must ask!!!
Les entreprises ne veulent pas remplacer un système vieux de dix ans
ICLR 2022 | pre training language model based on anti self attention mechanism
How to use flexible arrays?
Word2vec (skip gram and cbow) - pytorch
Chapter 19 using work queue manager (2)
UVa 11732 – strcmp() Anyone?
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
C three ways to realize socket data reception
QT信号和槽
Aardio - integrate variable values into a string of text through variable names
[untitled]
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
memcached
Use ECs to set up an agent
Flutter life cycle
【全网首发】Redis系列3:高可用之主从架构的
poj 1094 Sorting It All Out (拓扑排序)