vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted
添加FQDN
1 2 3
vim /etc/hosts 10.211.55.13 Hadoop-1 10.211.55.14 Hadoop-2
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled fi if test -f /sys/kernel/mm/transparent_hugepage/defrag; then echo never > /sys/kernel/mm/transparent_hugepage/defrag fi
添加可执行权限:chmod +x /etc/rc.d/rc.local
安装NTP
执行命令:yum -y install ntp 配置 vim /etc/ntp.conf 使用如下位置来同步时钟