centos7 安装jdk11
时间: 2023-08-21 18:08:38 浏览: 122
Centos 7 安装JDK11
在CentOS 7上安装JDK 11,你可以按照以下步骤进行操作:
1. 首先,使用以下命令卸载已安装的JDK 11版本:rpm -e --nodeps jdk-11-11.0.16.1-ga.x86_64 [1]
2. 然后,使用以下命令下载并安装JDK 11:rpm -ivh jdk-11.0.16.1_linux-x64_bin.rpm [3]
3. 安装完成后,可以使用以下命令验证JDK 11是否安装成功:java -version [2]
如果成功安装,会输出与引用相似的版本信息。
请注意,上述步骤假设你已经下载了适用于CentOS 7的JDK 11二进制文件,并将其保存在/usr/local目录下。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [CentOS7下安装JDK11](https://blog.csdn.net/michaelcc00/article/details/127242822)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [centos7安装配置jdk11](https://blog.csdn.net/xiao_yu_gan/article/details/128804695)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文