change linux RedHat / CentOS hostname
vim /etc/sysconfig/network
HOSTNAME=servername
vim /etc/hosts
10.10.10.10 servername
hostname servername
verify
hostname
service network restart
System Administrator
change linux RedHat / CentOS hostname
vim /etc/sysconfig/network
HOSTNAME=servername
vim /etc/hosts
10.10.10.10 servername
hostname servername
verify
hostname
service network restart