没怎么用过DB2,安装的时候报无效的IP,但ip地址确实是没有问题的,crt连接也没有问题,google了下
原来是我的
[root@db2 ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
#202.106.199.34 db2 db2
这里系统自动生成的IP地址是有问题的,DB2安装程序不认/etc/hosts中的ip地址,也间接说明了,db2安装程序获取ip是从/etc/hosts中.
帮助来源:https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014876277