centos 7 modify the computer name

 
[root @ centos7 ~] $ hostnamectl SEt- hostname test.xyz.com # Using this command will take effect immediately and restart also take effect 
[root @ centos7 ~] $ hostname                                          # view the next  test.xyz.com

Guess you like

Origin www.cnblogs.com/jackadam/p/11369981.html