一 目的
linux环境安装jdk
二 步骤
1. 检索jdk,取所需版本
yum search java | grep jdk
或者
yum list | grep java
2. 安装jdk
yum install -y java-1.8.0-openjdk
3. 验证
java -version
标签:java,jdk,yum,linux,grep,安装 From: https://www.cnblogs.com/qxAndWorld/p/17804671.html
linux环境安装jdk
yum search java | grep jdk
或者
yum list | grep java
yum install -y java-1.8.0-openjdk
java -version
标签:java,jdk,yum,linux,grep,安装 From: https://www.cnblogs.com/qxAndWorld/p/17804671.html