Linux modified hostname two ways

  
        
If you want to change the host name to linux, the two methods: 1. # hostname linux This will take effect immediately after the modification, but after the restart, there is no 2. # vi /etc/sysconfig/network Modify the hostname inside The content after the equal sign can be used as the configuration file of the host name. After the modification, the system will take effect.
Copyright © Windows knowledge All Rights Reserved