[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
centos 7 modify the computer name
Guess you like
Origin www.cnblogs.com/jackadam/p/11369981.html
Recommended
Ranking