Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Page Tree
expandCollapseAlltrue
root安全节点+超级节点搭建教程


Panel
borderColorgrey
bgColorwhite
titleColorblack
borderWidth1
titleBGColorwhite
borderStylesolid
titleLanguages


使用此页面可以获得用于升级在安全节点或超级节点上运行的各种软件的常用命令

  • 升级zend守护程序




描述指令

升级zend守护程序
1

更新apt缓存和安装zen,如果有新版本,这将升级zend守护进程更新zen.list以指向新的HorizenOffical git repo并更新apt缓存并安装zen,如果有新版本可用,这将升级zend守护程序


注意:APT存储库已更新为2.0.19.20


更新zen.list文件以使用horizenofficial git repo

Code Block
sudo sed -i 's/[zZ][eE][nN][cC][aA][sS][hH][oO][fF][fF][iI][cC][iI][aA][lL]/HorizenOfficial/g' /etc/apt/sources.list.d/zen.list

按照以下步骤更新apt缓存并确认repo更新(如果出现提示)

Code Block
sudo apt-get update

运行sudo apt-get update时,您可能会收到如下错误:

Code Block
Example
: Repository 'https://HorizenOfficial.github.io/repo/ $distro Release' changed its 'Origin' value from 'ZencashOfficial' to 'HorizenOfficial'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

要解决此问题,请在出现此对话框时按y + ENTER接受原点更改:

Code Block
Example
Do you want to accept these changes and continue updating from this repository? [y/N]

更新apt缓存并安装zen,如果有新版本可用,这将升级zend守护程序

Code Block
sudo rm -r /var/lib/apt/lists/* && sudo apt-get update && sudo apt-get install zen


2

下载zend所需的参数


注意:这只会下载缺少的参数


Code Block
zen-fetch-params


3升级完成后停止zend

使用systemd安装(假设单元文件名为'zend.service')

Code Block
sudo systemctl stop zend

monit安装

Code Block
sudo monit stop zend

手动启动 zend

Code Block
zen-cli stop && sleep 5


4

检查ZEND版本



***检查“版本”:2.0.

19,在2019年10月14日之后

21-1,在2020年6月1日之后,***


注意:Zend版本2.0.18将在块#610000(大约2019年10月26日)弃用20将在块#736000(大约2020年6月2日)弃用


Code Block
zend --version


Panel
borderColorgrey
bgColorblack
titleColorwhite
borderWidth2
titleBGColorblack
borderStylesolid
titleDesired Output

zenops@node01:~$ zend --version

Zen Daemon version v2.0.19

Copyright (C) 2009-2019 The Bitcoin Core Developers
Copyright (C) 2015-2019 The Zcash Developers
Copyright (C) 2015-2019 Zdeveloper.org
Copyright (C) 2015-2019 Zen Blockchain Foundation

This is experimental software.

Distributed under the MIT software license, see the accompanying file COPYING
or <http://www.opensource.org/licenses/mit-license.php>.

This product includes software developed by the OpenSSL Project for use in the
OpenSSL Toolkit <https://www.openssl.org/> and cryptographic software written
by Eric Young.


5

升级完成后启动zend监控服务

使用systemd安装(假设单元文件名为'zend.service')

Code Block
sudo systemctl start zend

monit安装

Code Block
sudo monit start zend

手动启动 zend

Code Block
zend



重新启动 zentracker
6在zend重新启动后重新启动zentracker

使用systemd安装

Code Block
sudo systemctl restart zentracker

pm2安装(假设跟踪器作为唯一或第一个进程运行,编号为0)

Code Block
pm2 restart 0



Insert excerpt
友情链接
友情链接
nopaneltrue