部署区块链浏览器 | 部署(二) | report agent(
2019-01-01 本文已影响6人
Ricsy
report agent部署
注意:
每台部署了区块链节点的机器仅运行一个脚本即可。
使用前,请将需要被监控的区块链节点配置文件中的statlog打开。
- 配置config文件使statlog参数为ON
vim config.json

注意:若修改了config.json,则需要重启节点才会生效。
- 进入区块链浏览器根目录下的report文件夹,修改ReportAgent.py
vim ReportAgent.py

提示:我采用的是两服务器各两个节点的部署方式

- 常用命令
启动脚本
chmod +x start_Agent.sh
./start_Agent.sh
查看日志
tail -f agentOut.txt
关闭脚本
chmod +x stop_Agent.sh
./stop_Agent.sh
上一篇 | 主教程 | 下一篇 |
---|---|---|
浏览器部署 | 部署区块链浏览器教程 | page部署 |