/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
/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