系统初始化
yum remove *jdk* -y #修改selinux以及修改最大文件打开数 echo -e "root soft nofile 65535\nroot hard nofile 65535\n* soft nofile 65535\n* hard nofile 65535" >> /etc/security/limits.conf echo -e "* soft nproc 65535\nroot soft nproc unlimited" > /etc/security/limits.d/90-nproc.conf #挂载磁盘 mkfs.ext4 /dev/sdc mkdir /data echo -e "/dev/sdc /data ext4 defaults 0 0" >> /etc/fstab mount -a #二进制安装jdk mkdir /usr/local/java tar -xf jdk1.7.0_80.tar.gz chmod -R 777 jdk1.7.0_80/* vim /etc/profile.d/jdk.sh export JAVA_HOME=/usr/local/java/jdk1.7.0_80 export JRE_HOME=/usr/local/java/jdk1.7.0_80/jre export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$PATH
#关闭防火墙以及selinux
service iptables stop
chkconfig iptables off
sed -i 's/SELINUX=enforcing/SELINUX=disabled/ig' /etc/selinux/config