Created
June 30, 2013 15:11
-
-
Save williamchang73/5895514 to your computer and use it in GitHub Desktop.
change host name 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
vi /etc/hosts | |
add host name before localhost | |
XXX localhost | |
vi /etc/sysconfig/network | |
change HOSTNAME=XXX | |
hostname XXX | |
re-login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment