setting hostname on linux

From WebHostingNeeds.com
Jump to: navigation, search

http://www.scriptinstallation.in/linux_change_hostname.html


vi /etc/hosts

Add following line

72.21.51.194 server32.hosthat.com server32


echo server32.hosthat.com > /etc/hostname
/bin/hostname -F /etc/hostname


vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server32.hosthat.com


reboot




hostname

server setup