`
韩悠悠
  • 浏览: 827027 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

hadoop学习---linux环境搭建,

 
阅读更多
1、linux安装
忽略
 
安装完成,创建hadoop用户
useradd hadoop
passwd hadoop
 
2、关闭不必要的服务
 
1,关闭防火墙
service iptables stop
 
关闭SELinux
vim /etc/sysconfig/selinux
 
将SELINUX=enforcing改为
 SELINUX=disabled
 
然后执行如下命令
setenforce 0
getenforce
 
备注
setenforce是Linux的selinux防火墙配置命令 执行setenforce 0 表示关闭selinux防火墙。

setenforce命令是单词set(设置)和enforce(执行)连写,另一个命令getenforce可查看selinux的状态。

关闭其他服务
 
for SERVICES in abrtd acpid auditd avahi-daemon cpuspeed haldaemon mdmonitor messagebus udev-post;
do
chkconfig ${SERVICES} off;
done
 
 
然后输入如下命令查看服务
chkconfig --list|grep "3:on"
 
chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接
使用范例:
chkconfig --list        #列出所有的系统服务
chkconfig --add httpd        #增加httpd服务
chkconfig --del httpd        #删除httpd服务
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics