You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Lotus节点操作及常见问题
1. 节点常用命令
2. 手动下载同步参数
3. 导入导出同步数据裁剪快照
当节点运行时间较长
.lotus
文件夹过大时,可选择通过导入导出同步数据来实现裁剪。4. 给Deamon配置公网IP
给Daemon节点配置公网IP以后,可以让节点更稳定、更健康,评分更高,不错过任何一个爆块机会。
4.1 配置公网IP
配置公网IP分如下两种情况:
(1) Daemon有公网IP
假设Daemon的公网IP为
123.123.73.123
,内网IP为10.0.1.100
,Daemon监听的端口为1234
。(2) Daemon无公网IP
如果Daemon没有公网IP,就需要在路由器、或有公网IP的服务器上,增加公网IP和端口向Daemon内网IP和端口的转发规则,假设公网机器的IP为
123.123.73.123
,Daemon的内网IP为10.0.1.100
,123.123.73.123:12340
端口映射到内网的10.0.1.100:1234
端口。4.2 更改Daemon配置
给Daemon节点配置公网IP以后,可以让节点更稳定、更健康,评分更高,不错过任何一个爆块机会。
4.1 配置公网IP
配置公网IP分如下两种情况:
(1) Daemon有公网IP
假设Daemon的公网IP为
123.123.73.123
,内网IP为10.0.1.100
,Daemon监听的端口为1234
。(2) Daemon无公网IP
如果Daemon没有公网IP,就需要在路由器、或有公网IP的服务器上,增加公网IP和端口向Daemon内网IP和端口的转发规则,假设公网机器的IP为
123.123.73.123
,Daemon的内网IP为10.0.1.100
,公网的123.123.73.123:12350
端口映射到内网的10.0.1.100:1235
端口。4.2 更改Daemon配置
修改
$LOTUS_PATH/config.toml
文件中的以下内容:ListenAddresses
中的端口改为内网的端口,如1235
,IP为0.0.0.0
不用改;AnnounceAddresses
中的IP改为公网IP,如123.123.73.123
,端口改为公网端口12350
。注意:要修改的是Libp2p部分,而不是API部分。
修改好并重启Daemon后,可以通过以下命令,查看Daemon的公网连接地址:
5. 常见问题
使用命令
lotus mpool pending --local | wc -l
查看本地堵塞消息数量,若不为0,则需要手动进行消息清理,具体清理方法参考「消息池操作」一章。使用命令
lotus sync wait
查看本地与主网高度同步差异,当发现diff始终在2及以上时,需要对lotus节点网络、连接点质量、硬盘容量等进行排查并及时解决,否则将会出现掉算力等情况。Beta Was this translation helpful? Give feedback.
All reactions