/
使用apt升级zend守护程序

使用apt升级zend守护程序

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

  • 升级zend守护程序



描述指令

升级zend守护程序
1

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


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


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

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更新(如果出现提示)

sudo apt-get update

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

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接受原点更改:

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

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

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

下载zend所需的参数


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

zen-fetch-params
3升级完成后停止zend

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

sudo systemctl stop zend

monit安装

sudo monit stop zend

手动启动 zend

zen-cli stop && sleep 5
4

检查ZEND版本



***检查“版本”:2.0.21-1,在2020年6月1日之后,***


注意:Zend版本2.0.20将在块#736000(大约2020年6月2日)弃用

zend --version
Desired 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')

sudo systemctl start zend

monit安装

sudo monit start zend

手动启动 zend

zend

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

使用systemd安装

sudo systemctl restart zentracker

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

pm2 restart 0



© 2019 Horizen. All rights reserved.


Related content

Migrate zend Installation From Source to APT Repository
Migrate zend Installation From Source to APT Repository
More like this
将zend安装从源现在将Horizen存储库添加为源,再次更新包缓存Source迁移到APT Repository
将zend安装从源现在将Horizen存储库添加为源,再次更新包缓存Source迁移到APT Repository
More like this
Upgrade zend daemon using apt
Upgrade zend daemon using apt
More like this
Migrar la Instalación de Zend desde la Fuente a el Repositorio APT
Migrar la Instalación de Zend desde la Fuente a el Repositorio APT
More like this
Actualizar el daemon de zend utilizando apt
Actualizar el daemon de zend utilizando apt
More like this
Upgrade zend daemon from source
Upgrade zend daemon from source
More like this