hostname issue, cant change it properly
i have two machine, both are same version rhel6.4
serverB, installed the server by default hostname, localhost.localdomain hostname -s localhost hostname localhost.localdomain can i change the hostname without edit /etc/sysconfig/network because my serverA, i change the hostname during installation. /etc/sysconfig/network is showing hostname=localhost.localdomain, but when i type hostname, it shows serverA |
Yes you can change the hostname without editing the /etc/sysconfig/network file, but it will not persist a system reboot. For example
Code:
serv1#hostname server1 |
You can put it in /etc/sysconfig/network
Code:
NETWORKING=yes Code:
# HW eth0 |
All times are GMT -5. The time now is 08:18 AM. |