20190918-01 configure hostname 000,004

 

 If centOS7, modify the host name of the path in the / etc / hostname under

If centOS6, modify the host name of the path in the / etc / network down

Be a model modified to hadoop999

 

 

 

 

 

 Another case is the original hostname is localhost.localhostdomain, then if the IP system is 192.168.1.100, and hosts present in the linux system configured IP alias is hadoop100, such as 192.168.1.100 hadoop100. Then the host name will be changed to hadoop100

 

 Just hostname is hadoop999 just do a demonstration, and now into hadoop100

 

 The following set of hosts configuration windows

 

 

 

 After configuration using hadoop100 to ping

 

 Find ping hadoop100 is ping 192.168.1.100, because the hosts are configured alias

 

Guess you like

Origin www.cnblogs.com/YUJIE666/p/11538291.html