最新消息:XAMPP默认安装之后是很不安全的,我们只需要点击左方菜单的 "安全"选项,按照向导操作即可完成安全设置。

建置 Ethereum Dashboard

XAMPP下载 admin 1076浏览 0评论
 建置監控介面
在Ethereum-1節點上建置監控介面系統,並且安裝相關套件:

$ git clone https://github.com/cubedro/eth-netstats

$ cd eth-netstats
$ npm install
$ sudo npm install -g grunt-cli
$ grunt
$ npm start
在所有節點上安裝回報該節點狀態套件:

$ git clone https://github.com/cubedro/eth-net-intelligence-api

$ cd eth-net-intelligence-api
$ npm install
$ sudo npm install -g pm2
編輯 app.json 內參數:

[
{
“name”              : “node-app”,
“script”            : “app.js”,
“log_date_format”   : “YYYY-MM-DD HH:mm Z”,
“merge_logs”        : false,
“watch”             : false,
“max_restarts”      : 10,
“exec_interpreter”  : “node”,
“exec_mode”         : “fork_mode”,
“env”:
{
“NODE_ENV”        : “production”,
“RPC_HOST”        : “10.28.120.32

“,
“RPC_PORT”        : “8545”,
“LISTENING_PORT”  : “30303”,
“INSTANCE_NAME”   : “node-1”,
“CONTACT_DETAILS” : “”,
“WS_SERVER”       : “http://10.28.120.32:3000

“,
“WS_SECRET”       : “77777”,
“VERBOSITY”       : 2
}
}
]
這裡需要更改 RPC_HOST 為節點的 IP address,INSTANCE_NAME 為節點在監控介面上的名稱,WS_SERVER 為建置監控環境的 IP address 與 port,WS_SECRET 為串接節點所設定的 networkid

啟動回報狀態至監控介面:

$ pm2 start processes.json
使用瀏覽器輸入 http://10.28.120.32:3000

進入監控介面:

QQ截图20180927160908

转载请注明:XAMPP中文组官网 » 建置 Ethereum Dashboard

您必须 登录 才能发表评论!