How to change hostname on CentOS Linux

This quick tutorial will describe how to change the hostname on your CentOS Linux server. Where HOST_NAME occurs, replace it with your desired hostname. 1. Run the hostname command: 2. Open /etc/sysconfig/network, update the HOSTNAME line and save: 3. Open your hosts file, and update the hostname entry and save: Alternatively, you can use this ... Read More...