简体   繁体   中英

Installing JRE in centOS securely

When I try to connect to the java site to pull the data I use:

'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â.'

When you go to install java you have to accept the license agreement. 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:

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

(Possible duplicate of: Downloading Java JDK on Linux via wget is shown license page instead )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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