linuxjdk11安装包
时间: 2023-08-24 19:04:30 浏览: 162
引用和提供了Linux安装JDK 11的步骤。你可以按照以下步骤进行安装:
1. 首先,从指定网址下载JDK 11的压缩包,可以使用wget命令下载压缩包:
```shell
wget https://mirrors.huaweicloud.com/java/jdk/11.28/jdk-11_linux-x64_bin.tar.gz
```
2. 下载完成后,使用tar命令解压缩压缩包:
```shell
tar -zxvf jdk-11_linux-x64_bin.tar.gz
```
如果你希望将JDK安装在/opt目录下,可以参考以下步骤:
1. 进入/opt目录:
```shell
cd /opt/
```
2. 使用wget命令下载JDK 11的安装包:
```shell
wget https://repo.huaweicloud.com/openjdk/11.0.1/openjdk-11.0.1_linux-x64_bin.tar.gz
```
3. 使用tar命令解压缩安装包:
```shell
tar -zxvf openjdk-11.0.1_linux-x64_bin.tar.gz
```
在安装JDK 11之前,你可以检查当前系统中是否已经安装了其他版本的Java。你可以执行以下命令确认:
```shell
java -version
```
如果有其他版本的Java已经安装,你可以使用rpm命令检查是否存在相关的rpm包,并逐个卸载这些包,例如:
```shell
rpm -qa | grep java
rpm -e --nodeps "rpm名称"
```
确保你有足够的权限以执行卸载操作。
最后,你可以再次使用```java -version```命令检查JDK是否安装成功。希望这些步骤能帮助你安装Linux JDK 11安装包。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Linux安装JDK11](https://blog.csdn.net/zbh1957282580/article/details/126500809)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [linux在线安装JDK11](https://blog.csdn.net/AnNanDu/article/details/125012229)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Linux下安装JDK11图文教程(完整版)](https://blog.csdn.net/weixin_50093343/article/details/109442668)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文