/etc/sysconfig/network /etc/hosts

/etc/sysconfig/network
change HOSTNAME=AAA

this will change hostname, but no ip address

/etc/hots
xxx.xxx.xxx.xxx  AAA
This will change hostname, and also set AAA ip address

posted @ 2012-03-24 23:04  greencolor  阅读(950)  评论(0编辑  收藏  举报