How to change the Hostname for Linux

 

[code language=”css”]

root@erman02]#vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=erman02
NETWORKING=yes
HOSTNAME=production
Reboot Ediyoruz.
[root@erman02]# reboot
[root@erman02]# hostname
production

[/code]

Hits: 3

Leave a Reply

Your email address will not be published. Required fields are marked *