`
zhouchaofei2010
  • 浏览: 1086031 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

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

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics