How to change hostname of a CentOS system?

There are several ways to do that but I am using the old way. VI is my friend and still working. I am using a remote SSH session to one of my virtual machines but you can perform same steps from the console.

    Login with putty.exe
    Goto /etc/sysconfig/
    Type vi network
    Press i on the keyboard and change the HOSTNAME to your preferred servername
    Press ESC on the keybord
    Save the configuration by :wq!
    Log off or reboot
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To change NameServer Ip

The file that actually handles WHM > DNS Functions > Nameserver IPs area is at...

AppConfig is configured to disallow execution of apps that do not have ACLs defined – cPanel

If you see such an error while accessing any of the WHM Plugins, it is due to the recent changes...

Enable PPP

To enable PPP on your OpenVZ VPS: Log into SolusVM and Enable PPP. Reboot your VPS. Log into...

Initial cPanel WHM Setup

Step by Step Guide to Setup cPanel WHM 1) Login to root WHM (http://IPaddress:2086) 2) In the...

VPS Hosting - Unable to open pty: No such file or directory

When you use vzctl to enter into the VPS from node and get following error than it is due to...

Powered by WHMCompleteSolution