Sunday, November 22, 2009

Change hostname on CentOS

Change the hostname machine running CentOS.
  • Login with putty.exe / or SSH
  • Goto : cd /etc/sysconfig/
  • Type vi / nano network
  • Press i (for VI) on the keyboard and change the HOSTNAME to your preferred servername
  • Press ESC on the keyboard
  • Save the configuration by :wq! (For VI) or control x and save Y (for nano)
  • Reboot

No comments:

Post a Comment