阿里云
阿里云多端小程序中小企业获客首选
发表主题 回复主题
  • 12308阅读
  • 5回复

[分享]新手记一次安装jdk报错“erroropenof”

级别: 新人
发帖
5
云币
10
$5A XE;~{  
一起己电脑装的centos7也是因为这个原因导致不能安装sun jdk {T IGPK  
原因是通过wget没能重定向下载到正式的文件 原来的命令如下 t@Jo ?0s  
wget --no-cookie --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" ht tp://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm >GcFk&x  
在搞了一晚上后偶然看到一个国外网站说下载的文件大小不对 一看还真是只有5307(5.2k) YZk&'w  
后来开始找怎样才能通过wget下载的想要的文件 zx!1jS  
找到这个帖子htt p://www.wiloon.com/wordpress/?p=5805 O<Kr6+ -  
看了这个ht tp://www.iteye.com/topic/1125585 <Z&gAqj 2  
最后这个命令解决wget --no-cookie --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" htt p://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm?AuthParam=1435975281_b48160b32ebf93d8cbc9eaa84bf42f94 A T%0i  
Qknd^%  
V_~wWuZ-  
wOsr#t7  
o{ (v  
|QY+vO7fxj  
 w&-r  
7HF\)cz2  
brFOQU?  
为了让别人通过错误搜到这个答案 我决定了 我要把错误全贴出来 ?SpI^Wn)[  
U` U/|@6  
[root@iZ280qkcdxoZ java]# rpm -ivh jdk-8u45-linux-x64.rpm csV1ki/A  
error: open of <html> failed: No such file or directory 4qMHVPJv\  
error: open of <head> failed: No such file or directory ux }DWrR  
error: open of <title>Unauthorized failed: No such file or directory gK>Vm9rO  
error: open of Request</title> failed: No such file or directory wHCsEp(  
error: open of <META failed: No such file or directory <HD/&4$[  
error: open of NAME=ROBOTS failed: No such file or directory Ia\Nj _-%L  
error: open of CONTENT=NOINDEX, NOFOLLOW> failed: No such file or directory  :DD4BY  
error: open of <link failed: No such file or directory C+iP @~  
error: open of rel=stylesheet failed: No such file or directory /j^zHrLN  
error: open of type=text/css failed: No such file or directory ( u _ sz  
error: open of href=/errors/us/assets/hp-styles.css failed: No such file or directory >5j/4Ly  
error: open of /> failed: No such file or directory &><`?  
error: open of <link failed: No such file or directory nGf@zJDb  
error: open of rel=stylesheet failed: No such file or directory EAI[J&c  
error: open of type=text/css failed: No such file or directory zknD(%a  
error: open of href=/errors/us/assets/master-master.css failed: No such file or directory @Q^;qMy  
error: open of /> failed: No such file or directory ^\I$tnY`  
error: open of <body failed: No such file or directory -1o1k-8d  
error: open of style=margin: 0px failed: No such file or directory 83h3C EQ  
error: open of bgcolor= failed: No such file or directory `3OGCy  
error: open of <div failed: No such file or directory -K !-a'J  
error: open of id=banner> failed: No such file or directory [q@%)F  
error: open of <table failed: No such file or directory o]Ki+ U  
error: open of width=100% failed: No such file or directory ~!;3W!@(E  
error: open of border=0 failed: No such file or directory o i?ak  
error: open of cellspacing=0 failed: No such file or directory YszhoHYh  
error: open of cellpadding=0> failed: No such file or directory 8ah]D  
error: open of <tr> failed: No such file or directory f[RnL#*xJU  
error: open of <td failed: No such file or directory 7jPmI  
error: open of rowspan=2 failed: No such file or directory +R_U  
error: open of valign=middle failed: No such file or directory c1^3lgPv  
error: open of nowrap><a failed: No such file or directory c"xaN  
error: open of href=http://www.oracle.com><img failed: No such file or directory wnX6XyUH  
error: open of src=/errors/us/assets/oralogo-small.gif failed: No such file or directory *+AP}\p0F  
error: open of width=154 failed: No such file or directory `et<Z  
error: open of height=19 failed: No such file or directory B]vj1m`9  
error: open of hspace=10 failed: No such file or directory qha<.Ro  
error: open of vspace=25 failed: No such file or directory by<2hLB9Q  
error: open of border=0 failed: No such file or directory 8vo} .JIl  
error: open of ></a></td> failed: No such file or directory 3XRG"  
error: open of <td failed: No such file or directory #q- _  
error: open of align=right failed: No such file or directory :q=OW1^k^  
error: open of valign=top failed: No such file or directory .phQ7":`  
error: open of width=70% failed: No such file or directory DXt^Ym5Cv  
error: open of nowrap failed: No such file or directory }dz(DP d  
error: open of class=padMid><div failed: No such file or directory ;vitg"Zh>  
error: open of id=bannerMid> failed: No such file or directory 93\,m+-  
error: open of </div></td> failed: No such file or directory 2?j1~]DvZ  
error: open of <td failed: No such file or directory `9-Zg??8r  
error: open of width=30% failed: No such file or directory zYL^e @  
error: open of align=left failed: No such file or directory .kIf1-(<U  
error: open of valign=bottom failed: No such file or directory 9:> K!@  
error: open of nowrap></td> failed: No such file or directory NSq=_8  
error: open of </tr> failed: No such file or directory Mx"tUoU6z  
error: open of <tr> failed: No such file or directory i`qh|w/b_  
error: open of <td failed: No such file or directory Q 1Ao65  
error: open of align=right failed: No such file or directory Vz*'^=(o&  
error: open of valign=bottom failed: No such file or directory R 6Em^A/>  
error: open of nowrap failed: No such file or directory W=?87PkJu  
error: open of class=padMid></td> failed: No such file or directory 9[D7N  
error: open of <td failed: No such file or directory Ox Z:5ps  
error: open of width=30% failed: No such file or directory 6ZBD$1$A!  
error: open of align=left failed: No such file or directory .Q@"];wH  
error: open of valign=bottom failed: No such file or directory R{_IrYk  
error: open of nowrap></td> failed: No such file or directory z3]U% y(,  
error: open of </tr> failed: No such file or directory -cgukl4Va  
error: open of </table> failed: No such file or directory DF2&j!  
error: open of </div> failed: No such file or directory #EUgb7  
error: open of <!-- failed: No such file or directory d}_c (  
error: open of Header failed: No such file or directory =6&D4~R  
error: open of END failed: No such file or directory 5b p"dIe  
error: open of //--> failed: No such file or directory Hea<!zPH  
error: open of <table failed: No such file or directory :8rCCop Uv  
error: open of BORDER=0 failed: No such file or directory sA}R!  
error: open of CELLPADDING=0 failed: No such file or directory @XC97kGWp  
error: open of CELLSPACING=0 failed: No such file or directory n~j[Pw  
error: open of WIDTH=100%> failed: No such file or directory ISew]R2  
error: open of <tr> failed: No such file or directory %SCu29km  
error: open of <TD><IMG failed: No such file or directory (_ah~VnO  
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory i:ZA{hA`c  
error: open of BORDER=0 failed: No such file or directory DT4RodE$  
error: open of ALT=></TD> failed: No such file or directory "6Uj:9  
error: open of <td><table failed: No such file or directory Bw.&3efd  
error: open of width=100% failed: No such file or directory S8m&Rj3O&  
error: open of border=0 failed: No such file or directory @~3c"q;i7  
error: open of cellspacing=0 failed: No such file or directory :'~ gLW>j  
error: open of cellpadding=0> failed: No such file or directory uFZB8+  
error: open of <tr> failed: No such file or directory g/p9"eBpq  
error: open of <td><IMG failed: No such file or directory !U:s.^{  
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory XWpnZFjE  
error: open of BORDER=0 failed: No such file or directory p]Zabky  
error: open of ALT= failed: No such file or directory  twmJ  
error: open of height=15></td> failed: No such file or directory K-C-+RB  
error: open of </tr> failed: No such file or directory + t4m\/y  
error: open of <tr> failed: No such file or directory i0Q _f!j  
error: open of <td><h1>Sorry!</h1></td> failed: No such file or directory 2EwWV 0BS  
error: open of </tr> failed: No such file or directory ok%!o+nk.  
error: open of <tr> failed: No such file or directory ?3,tG z)  
error: open of <td><IMG failed: No such file or directory h./vTNMc  
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory 3}{5 X'  
error: open of BORDER=0 failed: No such file or directory x9A ZS#e)[  
error: open of ALT= failed: No such file or directory e.|RC  
error: open of height=5></td> failed: No such file or directory l~TIFmHkh%  
error: open of </tr> failed: No such file or directory "UGj4^1f  
error: open of <tr> failed: No such file or directory {JCz^0DV  
error: open of <td failed: No such file or directory xWz;5=7a]  
error: open of colspan=2>In failed: No such file or directory I S8nvx\  
error: open of order failed: No such file or directory np\2sa`  
error: open of to failed: No such file or directory tO>OD#  
error: open of download failed: No such file or directory (L:Fb  
error: open of products failed: No such file or directory }_(^/pnk  
error: open of from failed: No such file or directory ]!G>8Rc  
error: open of Oracle failed: No such file or directory J:Y|O-S!  
error: open of Technology failed: No such file or directory %_R|@cyD  
error: open of Network failed: No such file or directory _q$LrAT  
error: open of you failed: No such file or directory Q=L$7   
error: open of must failed: No such file or directory PT@e),{~o9  
error: open of agree failed: No such file or directory NU&^7[!yl  
error: open of to failed: No such file or directory 8 ]06!7S}  
error: open of the failed: No such file or directory 9#T%bB "J  
error: open of OTN failed: No such file or directory  ]RX tC*  
error: open of license failed: No such file or directory ) ~)SCN>-  
error: open of terms.</td> failed: No such file or directory QB3d7e)8>  
error: open of </tr> failed: No such file or directory ?WQd  
error: open of <tr> failed: No such file or directory 7|M$W(P  
error: open of <td><IMG failed: No such file or directory #"p1Qea$  
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory N[x@j)w-`  
error: open of BORDER=0 failed: No such file or directory O})u'  
error: open of ALT= failed: No such file or directory iPY vePQ  
error: open of height=5></td> failed: No such file or directory g t^]32$  
error: open of </tr> failed: No such file or directory F'>GN}n  
error: open of <tr> failed: No such file or directory y }&4HrT&  
error: open of <td><IMG failed: No such file or directory E/8u'  
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory }]g95xT  
error: open of BORDER=0 failed: No such file or directory q?Ku}eID3  
error: open of ALT= failed: No such file or directory j*H;a ?Y  
error: open of height=5></td> failed: No such file or directory 2 ]DCF  
error: open of </tr> failed: No such file or directory `gt&Y-  
error: open of <tr> failed: No such file or directory Q3Z%a|3W  
error: open of <td failed: No such file or directory [Zt# c C+  
error: open of colspan=2><strong>Be failed: No such file or directory ),;D;LI{S  
error: open of sure failed: No such file or directory "ji$@b_\?  
error: open of that...</strong></td> failed: No such file or directory Q@e*$<3  
error: open of </tr> failed: No such file or directory 6R-C0_'h  
error: open of <tr> failed: No such file or directory ~.W=  
error: open of <td><img failed: No such file or directory }c35FM,  
error: open of alt= failed: No such file or directory zr3q>]oma  
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory zJfK4o  
error: open of height=7 failed: No such file or directory o%Uu.P  
error: open of vspace=3> failed: No such file or directory OAW=Pozr9  
error: open of Your failed: No such file or directory rb *C-NutE  
error: open of browser failed: No such file or directory sP6 ):h  
error: open of has failed: No such file or directory tKG;k"wk  
error: open of cookies failed: No such file or directory @Xq&t}*8  
error: open of and failed: No such file or directory cyGN3t9`.  
error: open of JavaScript failed: No such file or directory 5Cc6 , ]  
error: open of enabled.</td> failed: No such file or directory !cN?SGafZI  
error: open of </tr> failed: No such file or directory i>tW|N  
error: open of <tr> failed: No such file or directory Avs7(-L+s  
error: open of <td failed: No such file or directory 6K4`;  
error: open of colspan=2><img failed: No such file or directory HUU >hq9  
error: open of alt= failed: No such file or directory FylWbQU9  
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory Pn'`Q S?  
error: open of height=7 failed: No such file or directory j*;*Ka w  
error: open of vspace=3> failed: No such file or directory kZU"Xn  
error: open of You failed: No such file or directory ~@[(N]=q  
error: open of clicked failed: No such file or directory 0NL :z1N-h  
error: open of on failed: No such file or directory -O~C m}e  
error: open of Accept License failed: No such file or directory U;x1}eFT  
error: open of for failed: No such file or directory i(M(OR/4  
error: open of the failed: No such file or directory q4sl=`L5Sp  
error: open of product failed: No such file or directory FasI'Ulk  
error: open of you failed: No such file or directory F-$Z,Q]S  
error: open of wish failed: No such file or directory Po Yr:=S?  
error: open of to failed: No such file or directory vQ:x% =]  
error: open of download.</td> failed: No such file or directory V~'k1P4  
error: open of </tr> failed: No such file or directory _-@ZOhw&  
error: open of <tr> failed: No such file or directory Nl~Z,hT$*  
error: open of <td failed: No such file or directory ?@Z7O.u  
error: open of colspan=2><img failed: No such file or directory yD"]{  
error: open of alt= failed: No such file or directory z6p#fsD  
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory <WM -@J(1  
error: open of height=7 failed: No such file or directory /Qr A8  
error: open of vspace=3> failed: No such file or directory 9Tzc(yCY  
error: open of You failed: No such file or directory  4]"a;(  
error: open of attempt failed: No such file or directory  Y[f,ia  
error: open of the failed: No such file or directory r> Fec  
error: open of download failed: No such file or directory Z -pyFK\  
error: open of within failed: No such file or directory `[X6#` <  
error: open of 30 failed: No such file or directory *mf}bTiS  
error: open of minutes failed: No such file or directory i Bi7|  
error: open of of failed: No such file or directory G+ :bL S#:  
error: open of accepting failed: No such file or directory (3AYy0J%  
error: open of the failed: No such file or directory |2qR^Hd&5  
error: open of license.</td> failed: No such file or directory `ifb<T  
error: open of </tr> failed: No such file or directory K{|w 43>D  
error: open of <tr> failed: No such file or directory p:Iw%eZ:  
error: open of <td><IMG failed: No such file or directory ;JAK[o8i  
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory 3|q2rA  
error: open of BORDER=0 failed: No such file or directory UV?[d:\>'  
error: open of ALT= failed: No such file or directory 6e,Apj 0  
error: open of height=5></td> failed: No such file or directory P\.WXe#j  
error: open of </tr> failed: No such file or directory T48BRVX-F  
error: open of <tr> failed: No such file or directory 9Kc0&?q@D  
error: open of <td failed: No such file or directory $RpF xi  
error: open of colspan=2><strong>From failed: No such file or directory (2: N;  
error: open of here failed: No such file or directory y= 2=DU  
error: open of you failed: No such file or directory )r=9]0=  
error: open of can failed: No such file or directory dI!8S  
error: open of go...</strong></td> failed: No such file or directory 1JIG+ZNmd  
error: open of </tr> failed: No such file or directory TKK,Y{{  
error: open of <tr> failed: No such file or directory JK[T]|G  
error: open of <td><IMG failed: No such file or directory F@g17aa  
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory P_Z M'[  
error: open of BORDER=0 failed: No such file or directory QQ*gFP.Ao  
error: open of ALT= failed: No such file or directory S3ErH,XB.  
error: open of height=5></td> failed: No such file or directory %WZ$]M?q  
error: open of </tr> failed: No such file or directory j]AekI4I  
error: open of <tr> failed: No such file or directory M Z2^@It  
error: open of <td><IMG failed: No such file or directory 3b e6p  
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory |0lLl^zp  
error: open of BORDER=0 failed: No such file or directory CdZnD#F2  
error: open of ALT= failed: No such file or directory >A<Df  
error: open of height=5></td> failed: No such file or directory 'gYg~=  
error: open of </tr> failed: No such file or directory g#w`J \iz  
error: open of </table> failed: No such file or directory &0s*P G  
error: open of <table failed: No such file or directory : g 5(HH  
error: open of width=100% failed: No such file or directory [8.-(-/;  
error: open of border=0 failed: No such file or directory Vu=] O/ =P  
error: open of align=center failed: No such file or directory ,}KwP*:Z  
error: open of cellpadding=2 failed: No such file or directory fSbS(a  
error: open of cellspacing=2> failed: No such file or directory >G&^?5  
error: open of <tr failed: No such file or directory w;~>k%}j  
error: open of valign=middle> failed: No such file or directory oooS s&t  
error: open of <td failed: No such file or directory ;uK";we  
error: open of align=right failed: No such file or directory 4oV {=~V  
error: open of valign=top failed: No such file or directory @cPflb  
error: open of width=2%><img failed: No such file or directory ) y`i@S}J  
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory X{`1:c'x  
error: open of height=7 failed: No such file or directory CG.,/]_  
error: open of vspace=3></td> failed: No such file or directory MF^_Z3GS'  
error: open of <td><a failed: No such file or directory a_MFQf&KV  
error: open of href=javascript:history.back(-1)>Back failed: No such file or directory w763 zi{  
error: open of to failed: No such file or directory $T?]+2,6;  
error: open of Previous failed: No such file or directory S@Iw;V  
error: open of Page</a></td> failed: No such file or directory GB =bG%Tb  
error: open of </tr> failed: No such file or directory Ev{MCu1!6  
error: open of <tr failed: No such file or directory T{tn.sT  
error: open of valign=middle> failed: No such file or directory 0yaMe@&,  
error: open of <td failed: No such file or directory []gRfM]$&  
error: open of align=right failed: No such file or directory Y.NE^Vn0  
error: open of valign=top><img failed: No such file or directory "W5rx8a  
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory e^8BV;+c  
error: open of height=7 failed: No such file or directory n+rM"Gxz  
error: open of vspace=3></td> failed: No such file or directory O@wK[(w^  
error: open of <td><a failed: No such file or directory cJ2PI  
error: open of href=http://www.oracle.com/us/sitemaps/index.html </tr> <tr valign=middle> <td align=right valign=top><img src=/errors/us/assets/004894.gif height=7 vspace=3></td> <td><a href=http://www.oracle.com/technetwork/index.html>OTN Homepage</a></td> </tr> </table> <br> <div id=footer> <table width=100%  border=0 cellspacing=0 cellpadding=0> <tr> <td width=50% class=legalese align=right valign=top> </td> <td width=50% class=legalese align=left valign=top > </td> </tr> <tr> <td width=50% class=legalese align=left valign=top> </td> <td width=50% class=legalese align=right valign=top><a class=legalese href=http://www.oracle.com/rss/index.html target=_top>RSS <img src=/errors/us/assets/feed-icon-14x14.png width=14 height=14 border=0></A><span class=navlink> | </span> <a class=legalese href=http://www.oracle.com/html/copyright.html target=_top>Legal Notices and Terms for Use</a><span class=navlink> | </span> <a class=legalese href=http://www.oracle.com/html/privacy.html target=_top>Privacy Statement</a><br /> </td> </tr> <tr> <td width=50% class=legalese align=right valign=top> </td> <td width=50% class=legalese align=left valign=top ></td> </tr> </table> </div> </td> <TD WIDTH=10><IMG SRC=/errors/us/assets/spacer.gif BORDER=0 ALT= WIDTH=10></TD> </tr> </table> </body> </html> failed: No such file or directory V'I T1~  
j`9Qzi1  
本帖最近评分记录: 1 条评分 云币 +1
光山居士 云币 +1 ECS云服务器2折起_1块钱/天 https://iil.ink/quanmin293 04-12
级别: 程序猿
发帖
231
云币
271
只看该作者 沙发  发表于: 2015-07-04
看到你这一路走的艰辛!这错误你应该折腾了一个通宵
级别: 程序猿
发帖
408
云币
407
只看该作者 板凳  发表于: 2015-07-04
Re新手记一次安装jdk报错“erroropenof”
楼主这样好麻烦 i/$SN-5}1  
eY}V9*.v  
最简单的办法是下载tar.gz 包直接用,比如jdk-8u45-linux-x64.tar.gz(centos 5 / 6 / 7 都可以装,fedora系列系统也可以这样装) (STx$cya  
http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz s MZ[d\  
rQj~[Y.c  
1.把jdk-8u45-linux-x64.tar.gz解压到/usr/local目录,形成/usr/local/jdk1.8.0_45 D=&K&6rr  
8Q(8b@ZO,  
2.在/etc/profile.d/目录下建立一个jdk1.8.sh文件,内容为以下内容: z<<Tk.65  
JAVA_HOME=/usr/local/jdk1.8.0_45/ DsQ/aG9c%  
JAVA_BIN=/usr/local/jdk1.8.0_45/bin/ '[f Zt#  
JRE_HOME=/usr/local/jdk1.8.0_45/jre/ m UgRm]  
JRE_BIN=/usr/local/jdk1.8.0_45/jre/bin/ +)gB9DoK  
CLASSPATH=/usr/local/jdk1.8.0_45/jre/lib:/usr/local/jdk1.8.0_45/lib:/usr/local/jdk1.8.0_45/jre/lib/charsets.jar {ERjeuDm]  
PATH=$PATH:$JAVA_BIN:$JRE_BIN vGN3 YcH  
export JAVA_HOME JAVA_BIN JRE_HOME JRE_BIN PATH CLASSPATH =x H~ww (D  
&t_h'JX&  
3.输入命令: M[s\E4l:t  
chmod +x /etc/profile.d/jdk1.8.sh 8R4qU!M  
source /etc/profile.d/jdk1.8.sh Ef,Cd[]b  
/usr/sbin/setenforce 0 y x;h  
GAp!nix6h  
搞定收工 aU(tu2  
ym%o}( v-  
aYVDp{_  
这样装的好处是以后升级直接删除/usr/local/下的jdk目录,把新版本重新解压到/usr/local/目录下,最后修改下/etc/profile.d/jdk1.8.sh文件里的路径就行了 w1i?# !|  
tIGs>, a=  
QJSr:dP4dG  
* nCx[  
K)5;2lN,  
[ 此帖被买醉在2015-07-04 13:05重新编辑 ]
级别: 科学怪人
发帖
6261
云币
9942

只看该作者 地板  发表于: 2015-07-04
没必要非用7吧,6.5也不错啊
级别: 新人
发帖
1
云币
1
只看该作者 4楼 发表于: 2017-03-22
Re新手记一次安装jdk报错“erroropenof”
我i就是通过搜索找过来的 ,特意注册了账号 真的谢谢楼主
级别: 新人
发帖
1
云币
1
只看该作者 5楼 发表于: 2018-11-26
Re新手记一次安装jdk报错“erroropenof”
谢谢楼主 |D+p$^L  
特意注册 #[(gIOrNn8  
注好人一生没bug
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
验证问题: ECS是阿里云提供的什么服务? 正确答案:云服务器
上一个 下一个
      ×
      全新阿里云开发者社区, 去探索开发者的新世界吧!
      一站式的体验,更多的精彩!
      通过下面领域大门,一起探索新的技术世界吧~ (点击图标进入)