Skip to content

Instantly share code, notes, and snippets.

@williamchang73
Created June 30, 2013 15:11
Show Gist options
  • Save williamchang73/5895514 to your computer and use it in GitHub Desktop.
Save williamchang73/5895514 to your computer and use it in GitHub Desktop.
change host name on CentOS
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