How to assign a Hostname for CentOS Linux Server
Article ID: 3144 Published: 23 Nov 2014 Updated: 15 Feb 2016 Authored by: Crazy Domains Support
This tutorial shows you how to assign a hostname for a CentOS Linux Server.
Step 1. | Log in to the server console as root user. |
Step 2. | Open the file /etc/sysconfig/network using text editor, such as VI. |
|
|
Step 3. | Edit the variable HOSTNAME='your hostname goes here', save and exit. |
|
|
Step 4. | Reboot your server. Your server will boot up with the new hostname. |
|
Congratulations, you have assigned a hostname for the CentOS Linux Server.