How do I permanently change the hostname in Linux 6?

How do I permanently change the hostname in Linux 6?
Answer
How to Change the Hostname on RHEL 6/Centos 6 Server
  1. Modify /etc/sysconfig/network [

    [email protected]

    ~]# vi /etc/sysconfig/network.
  2. Edit to your preferred hostname : NETWORKING=yes HOSTNAME=MyNewHostname.localdomain.
  3. Save and reboot your server.
 

Tìm kiếm

Back
Top