您的位置:首页 > 运维架构 > Linux

大数据系列教程_Linux系统配置

2014-12-06 17:38 232 查看

2、Linux系统配置

备注:此处系统配置这是配置了必须选项,没有从系统方面做优化

2.1、修改主机名称、主机名IP映射

vim /etc/sysconfig/network(永久修改)
hostname(临时修改)
vim /etc/hosts
2.2、SSH免密码登陆

cd /home/hadoop/.ssh/
ssh-keygen-t rsa –P ‘’
cat id_rsa.pub >> authorized_keys
chmod 600 authorized_keys
2.3、修改最大打开文件数

vim /etc/security/limits.conf
* soft nofile 102400
* hard nofile 102400
* soft nproc 102400
* hard nproc 102400
同时reboot系统才能生效
2.4、关闭防火墙、selinux、umask、packageKit

1)临时生效,重启后复原

开启: service iptables start

关闭: service iptables stop
2)永久性生效,重启后不会复原

开启: chkconfig iptables on

关闭: chkconfig iptables off
Selinux
vim /etc/selinux/config
umask
值为0022
否则修改~/.bashrc
添加umask 022
vim /etc/yum/pluginconf.d/refresh-packagekit.conf
enabled=0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: