具体的报错,如图所示:
在启动weblogic的时候,显示Could not obtain the localhost address
造成这个的主要原因是:计算机的名字跟linux下/etc/hosts内配置的名字不一致。
解决办法:
1、查看计算机名字:hostname
在启动weblogic的时候,显示Could not obtain the localhost address
2、查看/etc/hosts的文件
在启动weblogic的时候,显示Could not obtain the localhost address
从以上的图片内容中,可以看出/etc/hosts里面根本就没有添加计算机名称,所以就启动不了啦。找到原因所以解决办法就很简单啦!!!
第一种:修改计算机的名字,简单粗暴(编辑->/etc/sysconfig/network)。需要重启生效
在启动weblogic的时候,显示Could not obtain the localhost address

第二种:将计算机名字添加到–>/etc/hosts(备注:修改完要重启)
在启动weblogic的时候,显示Could not obtain the localhost address

相关文章: