当前位置:网站首页>(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
边栏推荐
- MySQL实现字段分割一行转多行的示例代码
- Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
- 室内LED显示屏应该怎么选择?这5点注意事项必须考虑在内
- MySQL中正则表达式(REGEXP)使用详解
- Puppeteer连接已有Chrome浏览器
- Slide the uniapp to a certain height and fix an element to the top effect demo (organize)
- Let's see through the network i/o model from beginning to end
- Is there any requirement for the value after the case keyword?
- Interview question: AOF rewriting mechanism, redis interview must ask!!!
- Volatile keyword
猜你喜欢
Modules that can be used by both the electron main process and the rendering process
Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
Word2vec (skip gram and cbow) - pytorch
(shuttle) navigation return interception: willpopscope
Signed and unsigned keywords
#DAYU200体验官# 首页aito视频&Canvas绘制仪表盘(ets)
Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
Custom swap function
mysql连接vscode成功了,但是报这个错
Bipartite graph determination
随机推荐
Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient
2014阿里巴巴web前实习生项目分析(1)
Jafka source analysis processor
Rust knowledge mind map XMIND
MySQL authentication bypass vulnerability (cve-2012-2122)
QT信号和槽
Typescript get function parameter type
儿童睡衣(澳大利亚)AS/NZS 1249:2014办理流程
视图(view)
企业不想换掉用了十年的老系统
Comparison between variable and "zero value"
mysql拆分字符串作为查询条件的示例代码
ICLR 2022 | pre training language model based on anti self attention mechanism
npm无法安装sharp
The problem that dockermysql cannot be accessed by the host machine is solved
OpenSSL:适用TLS与SSL协议的全功能工具包,通用加密库
Bipartite graph determination
动作捕捉用于蛇运动分析及蛇形机器人开发
Introduction to network basics
HDU 5077 NAND (violent tabulation)