Adjust /etc/hosts

Next we edit /etc/hosts. Make it look like this:

mcedit /etc/hosts               localhost.localdomain localhost  server1

Setting The Hostname

(This step is optional.)

This is not necessary if you have set the correct hostname during the installation. You can check the current hostname with the commands

hostname -f

Both commands should show

If the output shows a wrong hostname, you can set the correct one like this:

echo > /etc/hostname
/bin/hostname -F /etc/hostname


About admin