简体   繁体   English

在centOS中安全安装JRE

[英]Installing JRE in centOS securely

When I try to connect to the java site to pull the data I use: 当我尝试连接到Java网站以提取数据时,我使用了:

'wget http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jre-7u25-linux-x64.rpm ' 'wget http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jre-7u25-linux-x64.rpm '

Then receive the error: 然后收到错误:

'ERROR: certificate common name âwww.oracle.comâedelivery.oracle.comâ To connect to edelivery.oracle.com insecurely, use â--no-check-certificateâ.' “错误:证书通用名” www.oracle.com“ edelivery.oracle.com”要不安全地连接到edelivery.oracle.com,请使用“ no-check-certificate”。

When you go to install java you have to accept the license agreement. 当您安装Java时,您必须接受许可协议。 I think this is what is going wrong. 我认为这是问题所在。 Does anyone know how to accept this agreement if this is the issue. 如果这是问题,没有人知道如何接受此协议。 Or if this isnt this issue, what the problem is and a possible solution. 或者,如果这不是问题所在,那么问题出在哪里,可能的解决方案。

You should be able to get the rpm with the command: 您应该可以使用以下命令获得rpm:

wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" download.oracle.com/otn-pub/java/jdk/7u25-b15/… --no-check-certificate wget --no-cookies --header“ Cookie:gpw_e24 = http%3A%2F%2Fwww.oracle.com”download.oracle.com/otn-pub/java/jdk/7u25-b15/…--no-check -证书

(Possible duplicate of: Downloading Java JDK on Linux via wget is shown license page instead ) (可能的重复项: 而是通过许可证页面在Linux上通过wget下载Java JDK

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM