操作方法
为了对比,先看一下没有修改前主机名字
要先修改/etc/sysconfig/下networt文件、
修改前为localhost 修改后为ic
重启 ,会出现下面的情况,这就需要接着修改/etc/下面的文件hosts, # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "hosts" 3L, 147C
重启 修改成功 [redhat3@ic redhat3]$ uname -a Linux ic 2.4.21-50.EL #1 Tue May 8 17:26:44 EDT 2007 i686 i686 i386 GNU/Linux[redhat3@ic redhat3]$