This guide will help you how to change hostname on Centos 6.3
Present your hostname is
[[email protected] /]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain [[email protected] /]#
Change by modify /etc/sysconfig/network
[[email protected] /]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=Centos6.3 [[email protected] /]# init 6 [[email protected] /]#
After reboot, we will get new hostname.
login as: root [email protected]′s password: Last login: Wed Dec 5 01:05:27 2012 from 192.168.0.105 [[email protected] ~]#
Hits: 80