1.修改hostname : vi /etc/sysconfig/network
2.修改hosts文件 : vi /etc/hosts
3.应用更改的网络设置 : service network restart
4.查看ip : ifconfig
5.复制文件或文件夹到远程主机(将hosts文件复制到hadoop主机上/etc目录下) : scp -r /etc/host hadoop:/etc -r为递归复制
6.关闭防火墙 : service iptables stop 查看防火墙状态 service iptables status 这种方式在主机重启后防火墙会自动开启
7.查看配置信息 : chkconfig --list 为查看所有配置信息,如果只查看防火墙配置信息可以使用管道过滤
8.管道过滤竖线左侧的输出作为竖线右侧的输入 : chkconfig --list | grep iptables 可以查看防火墙配置信息
9.关闭防火墙自动运行 : chkconfig iptables off 执行结束可以使用chkconfig --list | grep iptables验证
10.给当前用户授予执行jdk安装权限 : chmod u+x jdk-6u24-linux-i586.bin
11.安装jdk : ./jdk-6u24-linux-i586.bin
12.设置环境变量 : vi /etc/profile 添加 export
13.重命名 : mv jdk1.6.0_24/ jdk
14.刷新环境变量 : source /etc/profile
15.解压tar.gz : tar -zxvf hadoop-1.1.2.tar.gz