Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
DescriptionCommandUpgrading the node tracker1Stop the running tracker processFor installations using systemd (assumes the unit file is named 'zentracker.service')

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


Panel
borderColorgrey
bgColorwhite
titleColorblack
borderWidth1
titleBGColorwhite
borderStylesolid
titleLanguages

Use this page for instructions regarding migrating your Secure Node to a Super Node.

Upgrading the node tracker

  • Move the secnodetracker folder, renaming in the process
  • Update the git repository remote URL
  • Update the tracker software
  • Test the new tracker software for your Secure Node

Zen.conf Configuration

  • Add IPv4 external IP
  • Add IPv6 external IP
  • Add port 9033

Change from Secure Node to Super Node

  • Add an additional DNS record for your fully-qualified domain name (FQDN) - either an A record, if your Secure Node was IPv6, or an AAAA record if your Secure Node was IPv4. Both IPv4 and IPv6 addresses for your Super Node must resolve via DNS.
  • Prepare a new transparent (T) address with a staking balance of 500 ZEN (you must not re-use the T address used for the Secure Node stake)
  • Configure the tracker for a Super Node

有关将安全节点迁移到超级节点的说明,请参照此页面。

升级节点跟踪器

  • 移动secnodetracker文件夹,在此过程中重命名
  • 更新git存储库远程URL
  • 更新跟踪软件
  • 测试安全节点的新跟踪软件

配置Zen.conf 

  • 添加IPv4外部IP
  • 添加 IPv6外部IP
  • 添加 9033端品

从安全节点更改为超级节点

  • 为您的完全限定域名(FQDN)添加其他DNS记录 - 如果您的安全节点是IPv6,则为A记录;如果您的安全节点为IPv4,则为AAAA记录。 超级节点的IPv4和IPv6地址都必须通过DNS解析。
  • 准备一个新的透明(T)地址,余额要大于500 ZEN(您不得重复使用用于安全节点质押T地址)
  • 配置超级节点的跟踪器



描述指令

升级节点跟踪器
1停止正在运行的跟踪器进程

对于用systemd安装(假设单元文件名为'zentracker.service')

Code Block
sudo systemctl stop zentracker


For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)对于用pm2安装(假设跟踪器作为唯一或第一个进程运行,编号为0)

Code Block
pm2 stop 0


2

Move (mv) the securenodetracker folder, renaming it in the process, generally this will be ~移动(mv)securenodetracker文件夹,在进程中重命名,通常这将是〜/ zencash / secnodetracker and change directory (cd) to the new foldersecnodetracker并将目录(cd)更改为新文件夹


Code Block
mv ~/zencash/secnodetracker ~/nodetracker && cd ~/nodetracker


3Update git with the new repository URL and retrieve the latest source code使用新的存储库URL更新git,并检索最新的源代码


Code Block
git checkout -- package.json
git remote set-url origin https://github.com/ZencashOfficial/nodetracker.git
git fetch origin
git checkout master
git pull


NOTE: If git returns an error regarding any files run the following command (replacing 'filename with the file returned in the error message) and repeat the commands above:如果git返回有关任何文件的错误,请运行以下命令(将'filename替换为错误消息中返回的文件)并重复上述命令

Code Block
git checkout -- filename


4Install the latest set of node modules required for the tracker安装跟踪器所需的最新节点模块集


Code Block
npm install



zen配置zen.conf configuration - skip steps 5 and 6 if this has already been done for your node- 如果您的节点已经完成,请跳过步骤5和6
5

Locate your node's public IPv4 and/or IPv6 address(es) and append them to the zen.conf file as external IP address(es) connected over port 9033 (default)

NOTE: Replace <IPv4> with the public IPv4 of your node, remove <brackets>

NOTE: Replace <IPv6> with the public IPv6 of your node in compressed notation without leading zeros, remove <brackets>

Use the following link to ensure your IPv6 address is in compressed notation:找到节点IPv4和/或IPv6的公共地址,并将它们作为通过端口9033连接的外部IP地址附加到zen.conf文件(默认)

注意:将<IPv4>替换为节点的公共IPv4,删除<bracket>

注意:使用压缩表示法中的节点的公共IPv6替换<IPv6>,而不使用前导零,删除<bracket>

使用以下链接确保您的IPv6地址采用压缩符号

https://www.ultratools.com/tools/ipv6Compress

Create environmental variables for IPv4为IPv4创建环境变量

Code Block
IPV4=<IPv4>

Append external IPv4 into zen.conf将外部IPv4附加到zen.conf中

Code Block
echo "externalip=$IPV4" >> ~/.zen/zen.conf

Create environmental variables for IPv6为IPv6创建环境变量

Code Block
IPV6=<IPv6>

Append external IPv6 into zen.conf将外部IPv6附加到zen.conf中

Code Block
echo "externalip=$IPV6" >> ~/.zen/zen.conf

Append port into zen.conf将port端口附加到zen.conf中

Code Block
echo "port=9033" >> ~/.zen/zen.conf


6

Restart zend and check the address configuration

NOTE: The output of the 2nd command should display the address(es) entered in the previous step

For installations using systemd (assumes the unit file is named 重启zend并检查地址配置

注意:第二个命令的输出应显示在上一步中输入的地址

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

Code Block
sudo systemctl restart zend && sleep 8

For installations using 对于用monit安装

Code Block
sudo monit restart zend && sleep 8


Code Block
zen-cli getnetworkinfo | grep address


7

Run node setup again to refresh the list of tracker servers and initialise the new tracker, press enter through each of the values to retain the current set

Enter 'secure' for the 'node category' prompt

再次运行节点设置以刷新跟踪器服务器列表并初始化新跟踪器,按Enter键以通过每个值保留当前设置

  • 为“节点类别”提示输入“secure”


Code Block
node setup.js


8

Update the relevant monitoring process based on your installation

  • For installations using systemd, update the zentracker.service systemd unit with the tracker's new folder location
  • For installations using pm2, delete the existing process definition

For installations using systemd (assumes the unit file is named 使用systemd安装(假设单元文件名为'zentracker.service')

Code Block
sudo sed -i  "s|zencash/secnodetracker|nodetracker|g" /lib/systemd/system/zentracker.service


For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)使用pm2的安装(假设跟踪器作为唯一或第一个进程运行,编号为0)

Code Block
pm2 delete 0


9

Reload the node tracker process and start it

  • For installations using systemd, reload the systemd unit and start
  • For installations using pm2, start the process and save
For installations using systemd (assumes the unit file is named

重新加载节点跟踪器进程并启动它

  • 对于使用systemd安装,请重新加载systemd单元并启动
  • 对于使用pm2安装,启动该过程并保存

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

Code Block
sudo systemctl daemon-reload
sudo systemctl start zentracker


For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)使用pm2的安装(假设跟踪器作为唯一或第一个进程运行,编号为0)

Code Block
pm2 start app.js --name nodetracker
pm2 save


10

Verify that the tracker is running successfully following the update

For installations using systemd (assumes the unit file is named

在更新后验证跟踪器是否成功运行

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

Code Block
sudo systemctl status -n 0 zentracker


For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)使用pm2的安装(假设跟踪器作为唯一或第一个进程运行,编号为0)

Code Block
pm2 logs



Change from Secure Node to Super Node将安全节点更改为超级节点
11Stop the running tracker processFor installations using systemd (assumes the unit file is named 停止正在运行的跟踪器进程

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

Code Block
sudo systemctl stop zentracker


For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)使用pm2的安装(假设跟踪器作为唯一或第一个进程运行,编号为0)

Code Block
pm2 stop 0


12

Run the node setup again;

  • Enter 'super' for the 'node category' prompt
  • Enter the new T address with 500 ZEN stake
  • Enter through the remaining options, assuming no changes are required

    再次运行节点设置;

    • 为“节点类别”提示输入“super”
    • 输入500 ZEN质押新T地址
    • 输入其余选项,假定不需要进行任何更改


    Code Block
    node setup.js


    13Start the node trackerFor installations using systemd (assumes the unit file is named 启动node tracker

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

    Code Block
    sudo systemctl start zentracker


    For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)使用pm2的安装(假设跟踪器作为唯一或第一个进程运行,编号为0)

    Code Block
    pm2 start 0


    14

    Verify your Super Node is displayed on the tracking website验证您的超级节点是否显示在节点官网上


    https://supernodes.zensystem.io/nodes/all



    Insert excerpt
    友情链接
    友情链接
    nopaneltrue