hadoop安装前的linux 设置

一、修改主机名:

1、hostname  crxy0

2、vi /etc/sysconfig/network 

      改成:HOSTNAME=crxy0.localdomain

4、vi /etc/hosts

     添加192.168.203.132 crxy0 

5、reboot,重启系统。

6、查看hostname ,是否修改成功。

二、配置SSH免密码登录

ssh-keygen -t rsa -P ""

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

 三、关闭防火墙

       关闭防火墙

       执行命令 service iptables stop

       验证: service iptables status

      关闭防火墙的自动运行

       执行命令 chkconfig iptables off

       验证: chkconfig --list | grep iptables

 

 

猜你喜欢

转载自zhouchaofei2010.iteye.com/blog/2111867