1. Edit the /etc/sysconfig/network file using your preferred editors (vim in this case)
2. Edit the part that is labeled "hostname" and put your desired hostname there.
3. Save the file and quit vim by hitting the ESC key then type ":x" and hit enter.
4. Reboot your server and your new hostname should be set!