Modify the host name hostname

1. View the existing host name

hostname

   

 

2. Modify hostname

 

vi /etc/sysconfig/network

  

 3. Modify the hosts file

vi /etc/hosts

 

 4. Restart the machine

 

reboot

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326402741&siteId=291194637