This repository was archived by the owner on Oct 31, 2023. It is now read-only.
Replies: 1 comment
-
如果遇到这个问题的话。执行:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lotus节点搭建及启动
1. 编译安装
安装基础依赖库
安装 Golang
可直接运行本项目下的
./scripts/install-golang.sh
来安装Golang编译环境。安装 Rust
可直接运行本项目下的
./scripts/install-rust.sh
来安装Rust编译环境。编译Lotus
可直接运行本项目下的
./scripts/build-amd.sh
和./scripts/build-intel.sh
来针对AMD和Intel的CPU分别编译。2. 启动节点
直接启动Lotus节点
lotus daemon启动后,默认会在
~/.lotus
目录下初始化Lotus节点目录。可在
lotus daemon
启动前,通过指定LOTUS_PATH
环境变量来更改Lotus节点目录。通过快照启动Lotus节点
通过以下命令,从现有节点上导出Lotus快照。
$ lotus chain export --skip-old-msgs --recent-stateroots=2000 snapshot.car
通过以下命令,导入到现有节点,需要注意:
.lotus
目录中的内容是空的);--halt-after-import
;3. 更新配置文件
Daemon配置文件默认在
~/.lotus/config.toml
文件中, 若配置了$LOTUS_PATH
环境变量,则在此路径下。把下面的
DAEMON_IP_ADDRESS
改成Deamon本机的内网IP地址,并指定一个端口,默认端口是1234
。4. 节点常用操作
Beta Was this translation helpful? Give feedback.
All reactions