安装Oracle 11gR2,报错:[INS-06101] IP address of localhost could not be determined
出现这种错误是因为主机名和/etc/hosts 文件不一致,只需要把主机名和其IP 写入/etc/hosts 文件,就ok了。
1、查看主机名和和ip 地址关系:
[root@weigouwu80106 ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=tianshan80106
这里的主机名是tianshan80106
[root@localhost~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
从上面可以看出 hosts 没有我们对应的主机名和IP地址,我们需要把 tianshan80106写入到 hosts里面即可。
查看IP地址:
[root@tianshan80106~]# ifconfig
eth1 Link encap:Ethernet HWaddr 00:50:56:99:7D:62
inet addr:10.7.70.126 Bcast:10.7.70.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe99:7d62/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:
2、 修改hosts 文件
直接 vi /etc/hosts,然后添加 10.7.70.126 tianshan80106
[root@localhost ~]# vi /etc/hosts
# Do not remove the following line, orvarious programs
# that require network functionality willfail.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.7.70.126 tianshan80106
再次运行安装文件,顺利通过。
--转自