Skip to content

Commit

Permalink
Merge pull request #139 from yanyanho/dev-0.8
Browse files Browse the repository at this point in the history
 fix the install_FAQ
  • Loading branch information
mingzhenliu authored Jun 27, 2019
2 parents 029834a + ae0a1cd commit ccab30f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
12 changes: 11 additions & 1 deletion install_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@ FAILURE: Build failed with an exception.

* 3: 节点运行一段时间后新增了一个群组,front查不到新群组信息。

答: 调用 http://{ip}:{port}/WeBASE-Front/8081/1/web3/refresh 方法,即可手动更新。
答: 调用 http://{ip}:{port}/WeBASE-Front/8081/1/web3/refresh 方法,即可手动更新。


* 4: 觉得url中WeBASE-Front输入比较麻烦,怎么修改?

答:修改application.yml 文件中的context-path即可:
```
server:
port: 8081
context-path: /WeBASE-Front //修改此处即可如 webase-front;
```
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,15 @@ public Map<String, Long> getNetSpeed()
throws UnknownHostException, SigarException, InterruptedException {
Map<String, Long> map = new HashMap<String, Long>();
InetAddress addr;
addr = InetAddress.getLocalHost();
String ip = addr.getHostAddress();
String ip;
try {
addr = InetAddress.getLocalHost();
ip = addr.getHostAddress();
} catch (Exception e ) {
log.info("sigar get ip failed!");
ip = "127.0.0.1";
}

String[] ifNames = sigar.getNetInterfaceList();
long rxbps = 0;
long txbps = 0;
Expand Down

0 comments on commit ccab30f

Please sign in to comment.