Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

Which file to edit to change the hostname?

In order to change the hostname,

Edit Files in

/etc/hosts and /etc/sysconfig/network

And add the new hostname in these two files.

Once done restart network and reboot the server to reflect the changes

Share on Twitter
Share on Facebook