我在我的centos 7虚拟机中安装了DB2 10.5服务器。 我试图通过运行db2icrtDB2实例在运行时创建失败db2icrt
./db2icrt -u db2fenc1 db2inst1
创建DB2实例,但该命令通过发出失败:
Operating system information: Linux 3.10.0-229.el7.x86_64.#1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64
ERROR: The host name "vm65x148.acg.ips" is invalid. Specify a valid host name.
ERROR: The "db2icrt" command failed. Ensure the command parameters are valid,
that errors reported in the log file are fixed, then rerun the command.
在我的/ etc中的条目/ hosts文件是这样的
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
我会小心将它添加到回送适配器。我会用你用来连接虚拟机的公共IP。 –