How to modify the host name centos7

 

 

 

3.centos7 possible to directly view and change the host name hostnamectl command. As can be seen in FIG lower fixed host name and host name provisional.

 

4. Use hostnamectl to re-set the hostname is permanent even if the server is restarted also take effect.

grammar:

    hostnamectl set-hostname hostname;

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/kangleweb/p/12604694.html