Modify the Linux host name to make it permanent

Modify the Linux host name to make it permanent

The Linux host name needs to be changed when installing a virtual machine such as KVM. The following is to modify the default host name.

1. Modify the /etc/sysconfig/network configuration file.

 vi /etc/sysconfig/network


Change localhost.localdomain to your domain name, such as zhujiwiki.com

2. Modify /etc/hosts

 vi /etc/hosts


Change the yellow localhost to your host name, such as zhujiwiki

3. Restart

 reboot

<<:  Pump Cloud: $4.99/month/1GB memory/15GB SSD space/1TB traffic/KVM/Los Angeles/China optimization

>>:  DexHost E3-1230v2 8GB RAM Dedicated Server Los Angeles Simple Review

Recommend

HostWithLinux VPS 4GB OpenVZ Hong Kong Review

HostWithLinux is currently in stock, so hurry up ...

FtpIt: $2/month/512MB RAM/15GB storage/2TB bandwidth/OpenVZ/Los Angeles/Fremont

FtpIt is a good American hosting company. This si...

SpetsnazHost: $7/month/4GB RAM/50GB SSD space/unlimited traffic/KVM/New Jersey

SpetsnazHost, an American hosting provider, was e...