CentOS7上安装OpenJDK8 手把手操作
CentOS7上安装OpenJDK8 操作步骤1. yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel2.配置环境变量(从cat复制到EOF 这是一整段):cat > /etc/profile.d/java8.sh <<EOF export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))expor