当前位置: 首页 > 工具软件 > WeBASE-Front > 使用案例 >

WeBASE安装失败问题

暴夕
2023-12-01

一、 WeBASE-Front 启动失败

WeBASE-Front出现如下报错

==============      Starting WeBASE-Front      ==============
==============WeBASE-Front start fail. Please check through the log file (default path: ./webase-front/log/). ==============

或WeBASE出现类似报错

==============      Starting WeBASE      ==============
==============WeBASE-Node-Manager start fail. Please check through the log file (default path: ./webase.deploy/log/). ==============

进入日志查看到类似报错信息(不仅限于5002节点,5000-5004均可能未正常启动)

=======================================================
Server com.webank.webase.front.Application Port 5002.....................[Failed]. Please check message through the log file (default path:./log/)
=======================================================

原因:未开放网络端口

解决:

sudo apt-get install iptables
安装相应持续化规则扩展包

sudo apt-get install iptables-persistent
开放端口5000,5002

sudo iptables -I INPUT -p tcp --dport 5000 -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 5002 -j ACCEPT
#安装iptables-persistent后 开放端口需要root权限


二、 安装报错报错JAVA_HOME has not been configured

sudo apt install openjdk-14-jdk
sudo vim /etc/profile
export JAVA_HOME=/usr/lib/jvm/java-14-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
 
#退出后更新文件
source  /etc/profile

 

详细安装可参考:搭建Ubuntu系统的FISCO-BCOS和WeBASE平台(含入门级环境部署)_Yi_000的博客-CSDN博客

 类似资料: