有这样一个现象,在DB2安装后,使用db2icrt 来创建实例时,提示主机名无效,提示如下: [root@centos-0 instance]# ./db2icrt -u db2inst1 db2inst1 The host name "centos-0.msdomain" is invalid. Specify a valid host name. DBI1922N The host name is not valid. Explanation: The TCP/IP host
我使用过的Linux命令之hostname - 显示或设置主机名 本文链接:http://codingstandards.iteye.com/blog/804648 (转载请注明出处) 用途说明 hostname命令可以用来显示或者设置主机名(show or set the system’s host name).环境变量HOSTNAME也保存了当前的主机名.在使用hostname命令设置主机名后,系统并不会永久保存新的主机名,重新启动机器之后还是原来的主机名.如果需要永久修改主机名,需要同