Skip to content

Instantly share code, notes, and snippets.

@vunb
Created October 28, 2013 15:19
Show Gist options
  • Save vunb/7198668 to your computer and use it in GitHub Desktop.
Save vunb/7198668 to your computer and use it in GitHub Desktop.
Change hostname in centos
#Step 1
hostname [new_host_name]
#Step 2: Change network
vi /etc/sysconfig/network
#Edit HOSTNAME = [new_host_name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment