#更改网卡信息
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:50:56:28:F5:FF
TYPE=Ethernet
UUID=897dd113-422b-460d-bc8b-be9c0b23917b
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.100.203
NETMASK=255.255.255.0
GATEWAY=192.168.100.2
DNS1=8.8.8.8
USERCTL=no
PEERDNS=yes
IPV6INIT=no
#更改新增系统的mac地址
/etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:28:f5:ff", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# 主机名
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=node03
#关闭SELINUX
/etc/selinux/config/selinux
SELINUX=disabled
#ip地址起别名
/etc/hosts
192.168.100.201 node01
192.168.100.202 node02
192.168.100.203 node03
查看防火墙状态
service iptables status
彻底关闭防火墙
chkconfig iptables off
#ssh远程登录--基于免密登录
#在node01和node02和node03上面都要执行,产生公钥和私钥
ssh-keygen -t rsa
#将公钥拷贝到hadoop1上面去
ssh-copy-id node01
#在 /root/.ssh/目录下执行下面的命令:
scp authorized_keys node02:/root/.ssh/
scp authorized_keys node03:/root/.ssh/
#创建任务调度
crontab -e