问题描述


如图:

wKiom1l64TfzztlYAAHaTTT0BZ4194.png-wh_50

完整描述:

Checking Network Configuration requirements ...

Actual Result: Unknown Host Exception has Occurred :Linux-PC: Linux-PC.

Check complete. The overall result of this check is: Not executed <<<<

Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses.  However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly.  See the Installation Guide for more details on installing the software on systems configured with DHCP.

翻译过来大致是:

正在检查网络配置需求...

实际结果:发生了未知的主机异常:Linu-PC:Linux-PC

检查完成。此次检查的总体结果为: 未执行 <<<<
建议方案: Oracle支持安装在具有 DHCP 分配的公共 IP 地址的系统上。但应使用静态 IP 地址来配置系统的主网络接口, 以便 Oracle 软件正常工作。有关在配置有 DHCP 的系统上安装软件的详细信息, 请参阅 Installation Guide。


解决方法


这个问题在网上一搜一大堆,大致解决方法是,先配静态ip地址,然后修改hosts就好了,但修改hosts文件却写的不是很直观,我的系统是静态ip地址已经配置好了的,照其方法修改hosts后还是不对,任然出现上面的错误,折腾了好一会儿,终于解决了,其实很简单,hosts里面配置ip和主机名就好了,不用配什么域名,解决过程如下:

查看ip地址:

[root@Linux-PC ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 

DEVICE=eth0

TYPE=Ethernet

UUID=5d8e3707-f1a3-4c14-8605-d9f9d3205756

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=none

IPADDR=192.168.3.155

PREFIX=24

DEFROUTE=yes

IPV4_FAILURE_FATAL=yes

IPV6INIT=no

NAME="System eth0"

HWADDR=00:0C:29:53:5A:C5

查看主机名:

[root@Linux-PC ~]# hostname

Linux-PC

修改hosts:

在末尾添加一行"ip地址  主机名"。

执行vim命令,按i键修改,完了依次按:esc、:wq 、回车,保存修改。 

[root@Linux-PC ~]# vim /etc/hosts 

查看文件内容,我修改完后的文件内容如下,前面两行是默认的(不同的系统可能不一样,不管它),最后一行是我加的。

[root@Linux-PC ~]# cat /etc/hosts 

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1              localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.3.155   Linux-PC


完了后,没有重启系统,直接重新安装就好了..........