If you wish to continue using the legacy configuration, see Upgrading Tracker Software Use this page for common commands used to upgrade the node tracker software running on Secure, or Super Nodes
- Upgrading the node tracker
- Check tracker status
NOTE: You must be using systemd to manage zend and nodetracker for this procedure. If you're using an older install using PM2 & Monit, please follow PM2 / Monit - Migration to systemd
| Description描述 | Command指令 |
---|
| Upgrading the node 升级node tracker |
---|
1 | Stop the running nodetracker process停止nodetracker进程 |
Code Block |
---|
sudo systemctl stop zentracker |
|
2 | Change directory to where the node tracker was cloned, this will be ~将目录更改为克隆节点跟踪器的位置,官方指南为〜/ nodetracker for the official guide |
Code Block |
---|
cd ~/nodetracker |
|
3 | Update git with the new repository URL and retrieve the latest source code使用新的存储库URL更新git,并检索最新的源代码 |
Code Block |
---|
git checkout -- package.json
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 |
|
4 | Install the Node 使用npm安装Node Tracker with npm |
Code Block |
---|
NODE_ENV=production npm install |
|
| Optional - Run nodetracker setup to update configuration settings | 5 | NOTE: The nodetracker only permits a single setting to be changed at a time between reconnects (IP, FQDN, T-Address, Stake Address)
Enter/Return through all settings not needing to be updatedTo update stake address, see Change Staking Address备用选项 - 运行nodetracker设置以更新配置 |
|
---|
5 | 注意:nodetracker仅允许在重新连接时,更改单个设置(IP,FQDN,T地址,质押地址) - 输入/返回所有不需要更新的设置
- 更改质押地址请参见: 更改质押地址
| |
| Start the nodetracker and check it's status启动nodetracker并检查其状态 |
|
---|
6 | Start the nodetracker启动nodetracker |
Code Block |
---|
sudo systemctl start zentracker |
|
7 | Verify the status after restarting by following the logs and checking for valid output, exit by pressing CTRL + c参照日志,重新启动后验证状态,并检查有效输出,按CTRL + c退出
|
Code Block |
---|
sudo journalctl -fu zentracker |
|