Changing host name in CentOS/CloudLinux

Login with ssh  (Use putty.exe on Windows or Terminal in MacOS and Desktop Linux)

cd /etc/sysconfig/

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 (type exit)

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

bash: fork: Resource temporarily unavailable

cPanel servers, particularly with jailshell enabled, may produce the error fork: Resource...