我想在CentOS上安装oracle java jdk 8我无法安装java jdk,因为当我尝试使用命令安装java jdk时[root@ADARSH-PROD1 ~]# wget --no-cookies --no-check-certificate --header Cookie: gpw_e24=http%3A%2F%2Fwww.oracl...
我想在CentOS上安装oracle java jdk 8
我无法安装java jdk,因为当我尝试使用命令安装java jdk时
[root@ADARSH-PROD1 ~]# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u131-b27/jdk-8u131-linux-x64.rpm"
我收到输出:
Connecting to edelivery.oracle.com
(edelivery.oracle.com)|23.211.196.232|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u131-b27/jdk-8u131- linux-x64.rpm?AuthParam=1495864027_230ebffd10615c26528e8d2496500338 [following]
--2017-05-27 11:15:07-- http://download.oracle.com/otn-pub/java/jdk/8u131- b27/jdk-8u131-linux-x64.rpm? AuthParam=1495864027_230ebffd10615c26528e8d2496500338
Connecting to download.oracle.com (download.oracle.com)|184.25.109.32|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-05-27 11:15:09 ERROR 404: Not Found.
解决方法:
Oracle已更新链接生成机制.它现在包含一些序列,它似乎对于一个版本是持久的,但是用一个未知的机制生成.
此外,要下载除最新版本之外的任何版本,您现在需要拥有Oracle帐户:
For production use Oracle recommends downloading the latest JDK and
JRE versions and allowing auto-update.Only developers and Enterprise administrators should download these
releases.Downloading these releases requires an oracle.com account. If you
don’t have an oracle.com account you can use the links on the top of
this page to learn more about it and register for one for free.
在Oracle Java Archives页面查看更多信息.
所以你现在有两个选择.
选项1.通过新的直接链接使用最新版本(现在为8u131).
您接受许可协议后,该链接在Java SE Development Kit 8 downloads page处可用.你的命令将是:
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm"
选项2.切换到openjdk包:
yum install java-1.8.0-openjdk
有关openjdk安装的更多信息,请参见OpenJDK: Download and install页面.
本文标题为:java – 无法使用wget在CentOS机器上安装oracle jdk
基础教程推荐
- SpringBoot配置文件格式详细介绍 2023-05-14
- Java实现简单酒店管理系统 2022-11-16
- JavaFX实现界面跳转 2023-01-13
- SpringBoot图文并茂讲解依赖管理的特性 2023-02-05
- JSP实现简单网页计算器 2023-07-30
- jsp+mysql实现网页的分页查询 2023-07-30
- java – MySQL:用户拒绝访问…使用密码:YES 2023-11-05
- MQ的消息模型及在工作上应用场景 2022-11-20
- SpringBoot零基础入门之基本操作与概念 2023-03-07
- 详解Spring Security如何在权限中使用通配符 2023-02-05