How To Change Hostname On CentOS 6.5

There are 3 steps to this process.

First, change the hostname

hostname <whatyouwantittobe>

Second, change the hostname on the adapter

nano /etc/sysconfig/network

Ctrl+X -> Y -> Enter

And last, restart network service

service network restart