大数据学习——虚拟机准备(改主机名)

1 vi /etc/sysconfig/network

把HOSTNAME改为mini2

hostname mini2

exit

 

2 vi /etc/udev/rules.d/70-persistent-net.rules

删除eth0,把eth1改为eth0

 

3 vi /etc/sysconfig/network-scripts/ifcfg-eth0

删除uuid

把bootproto=dhcp改为bootproto=none

把hwaddr删掉

把IPADDR改为192.168.74.129

4 reboot

 
原文地址:https://www.cnblogs.com/feifeicui/p/10093507.html