Header Ads

  • New Updates

    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

    No comments

    Post Top Ad

    Post Bottom Ad

    Ads