Home · Latest · Trends  /  general
0

Change CentOS 7 hostname

rated 0 times [  0] [ 0]  / comments: 0 / hits: 276  / 1 year ago, wed, nov 15, 2017, 09:19:25
Changing the hostname in CentOS 7 is different than it was in CentOS 6. Here's how you want to do it...
# First, use the hostnamectl command
hostnamectl set-hostname "super.rowty.net"

# Then, update the /etc/hosts file using your favorite editor (vim)
More From » general
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Sponsor
Posted
rob

rob

Member since Feb 22, 2017
Total Code Snippets: 118
Total Comments: 1
Location: n/a
Following
User not following anyone yet.
rob snippets
2 yaers ago, wed, feb 22, 2017
2 yaers ago, wed, feb 22, 2017
2 yaers ago, wed, feb 22, 2017
2 yaers ago, wed, feb 22, 2017
2 yaers ago, wed, feb 22, 2017
2 yaers ago, wed, feb 22, 2017
2 yaers ago, wed, feb 22, 2017
2 yaers ago, wed, feb 22, 2017