当前位置:网站首页>(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
边栏推荐
- Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
- Chapter 19 using work queue manager (2)
- POJ 1258 Agri-Net
- Jafka来源分析——Processor
- OpenSSL: a full-featured toolkit for TLS and SSL protocols, and a general encryption library
- Is there any requirement for the value after the case keyword?
- [launched in the whole network] redis series 3: high availability of master-slave architecture
- spark调优(二):UDF减少JOIN和判断
- MATLAB小技巧(27)灰色预测
- Dockermysql modifies the root account password and grants permissions
猜你喜欢
Motion capture for snake motion analysis and snake robot development
View
How to choose indoor LED display? These five considerations must be taken into account
Rust knowledge mind map XMIND
室内LED显示屏应该怎么选择?这5点注意事项必须考虑在内
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
None of the strongest kings in the monitoring industry!
asp读取oracle数据库问题
Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon
随机推荐
DockerMySQL无法被宿主机访问的问题解决
使用云服务器搭建代理
允许全表扫描 那个语句好像不生效set odps.sql.allow.fullscan=true;我
Some suggestions for foreign lead2022 in the second half of the year
How to confirm the storage mode of the current system by program?
Children's pajamas (Australia) as/nzs 1249:2014 handling process
MySQL ---- first acquaintance with MySQL
Modules that can be used by both the electron main process and the rendering process
Is "applet container technology" a gimmick or a new outlet?
Dockermysql modifies the root account password and grants permissions
CSDN 上传图片取消自动加水印的方法
「小程序容器技术」,是噱头还是新风口?
同构+跨端,懂得小程序+kbone+finclip就够了!
UVa 11732 – strcmp() Anyone?
Efficient ETL Testing
The difference between enumeration and define macro
European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
基于PaddlePaddle平台(EasyDL)设计的人脸识别课堂考勤系统
Enterprises do not want to replace the old system that has been used for ten years
How does crmeb mall system help marketing?