Chinaunix首页 | 论坛 | 博客
  • 博客访问: 220717
  • 博文数量: 39
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 218
  • 用 户 组: 普通用户
  • 注册时间: 2013-11-06 12:33
文章分类
文章存档

2017年(2)

2015年(11)

2014年(18)

2013年(8)

我的朋友

分类: LINUX

2015-02-09 16:45:34

在搭建hadoop集群的时候会涉及到关闭防火墙、selinux、ipv6.

1、关闭selinux

/usr/sbin/setenforce 0 立刻关闭selinux

/usr/sbin/getenforce 1 立刻开启selinux

永久更改

vim /etc/selinux/config

#SELINUX=enforcing

#SELINUXTYPE=targeted

SELINUX=disabled

重启系统

2、关闭防火墙

/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT

/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT

/etc/rc.d/init.d/iptables save

永久性关闭防火墙:

#chkconfig --level 35 iptables off (注意中间的是两个英式小短线;重启)

3、关闭ipv6

1)、vim /etc/sysconfig/network     追加

NETWORKING_IPV6=no

2)、vim /etc/hosts

#::1    localhost localhost6 localhsot6.localdomai6

3)、新建/etc/modprobe/ipv6off.conf文件(名字随便取)

添加内容

alias net-pf-10 off

options ipv6 disable=1







   


阅读(4602) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~