本指南介绍了miner运行时如何安全地升级Lotus。
有两种类型的升级。替代升级是默认的过程,只是更新软件。
复位升级会删除所有数据,并从头开始。
#替代升级
安全关闭Lotus Miner
关闭所有封装worker
关闭Lotus Node(lotus daemon stop或systemctl stop lotus-daemon)
Pull新版本并重建。有关更多信息,请再次阅读《Lotus安装指南》
export RUSTFLAGS="-C target-cpu=native -g"
export FFI_BUILD_FROM_SOURCE=1
git pull
git checkout <tag_or_branch>
git submodule update
make clean
make all
make install
1.启动Lotus守护程序并等待同步:
lotus daemon
# 或使用systemctl
systemctl start lotus-daemon
lotus sync wait
2.启动miner和worker
lotus-miner run
lotus-worker run
#重置升级
警告
仅当万不得已时才应使用此升级过程,或者在链升级后并要求采取此类措施时使用。
这类似于从头开始重新安装所有内容,因此您可以按照其后的常规安装和矿工设置指南进行操作。在执行此操作之前,请考虑:
备份您的Lotus钱包
您可能还需要备份Lotus Node和Miner配置。
准备就绪后(备份完成),停止所有操作并删除数据文件夹(或重命名):
# Assuming you are using the default data folders
rm -rf ~/.lotus
rm -rf ~/.lotusminer
rm -rf ~/.lotusworker
之后,Lotus应用程序将从头开始。
免责声明:好库网所展示的信息由买卖双方自行提供,其真实性、准确性和合法性由信息发布人负责。好库网不提供任何保证,并不承担任何法律责任。