To change centos host name permanantly without restart


/etc/sysconfig/network


# sudo nano /etc/sysconfig/network
HOSTNAME=myserver.domain.com


/etc/hosts


127.0.0.1      localhost localhost.localdomain
192.168.0.20   hostname.domain.com   hostname
 ~
 ~
 ~
 ~
:wq!

Restart network using below command


# /etc/init.d/network restart

info site

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment