Created
September 2, 2014 06:57
-
-
Save egulhan/00739d893b7c7312fd93 to your computer and use it in GitHub Desktop.
How to change hostname on centos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ vim /etc/sysconfig/network | |
| HOSTNAME={NEW_HOSTNAME} | |
| $ vim /etc/hosts | |
| 127.0.0.1 {NEW_HOSTNAME} | |
| $ hostname {NEW_HOSTNAME} | |
| $ /etc/init.d/network restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment