{"id":80485,"date":"2026-03-05T09:17:23","date_gmt":"2026-03-05T01:17:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80485.html"},"modified":"2026-03-05T09:17:23","modified_gmt":"2026-03-05T01:17:23","slug":"linux%e7%8e%af%e5%a2%83%e4%b8%8bjdk%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80485.html","title":{"rendered":"Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5"},"content":{"rendered":"<p>\u5728 Linux \u73af\u5883\u4e0b\u5b89\u88c5 JDK \u4e3b\u8981\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a;\u5305\u7ba1\u7406\u5668\u5b89\u88c5&#xff08;\u7b80\u5355\u5feb\u6377&#xff09; \u548c \u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5&#xff08;\u7075\u6d3b&#xff0c;\u53ef\u6307\u5b9a\u7279\u5b9a\u7248\u672c&#xff09;\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u9488\u5bf9\u4e3b\u6d41\u53d1\u884c\u7248&#xff08;Ubuntu\/Debian \u548c CentOS\/RHEL&#xff09;\u7684\u8be6\u7ec6\u6559\u7a0b\u3002<\/p>\n<hr \/>\n<h4>\u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5<\/h4>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u5feb\u901f\u642d\u5efa\u73af\u5883&#xff0c;\u4e0d\u5f3a\u5236\u8981\u6c42\u7279\u5b9a\u5c0f\u7248\u672c\u53f7&#xff0c;\u8ffd\u6c42\u7a33\u5b9a\u548c\u7ef4\u62a4\u65b9\u4fbf\u3002 \u4f18\u70b9&#xff1a;\u4e00\u6761\u547d\u4ee4\u641e\u5b9a&#xff0c;\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u968f\u7cfb\u7edf\u66f4\u65b0\u3002<\/p>\n<p>1. Ubuntu \/ Debian \u7cfb\u7edf<\/p>\n<p># 1. \u66f4\u65b0\u8f6f\u4ef6\u6e90<br \/>\nsudo apt update<\/p>\n<p># 2. \u5b89\u88c5 OpenJDK (\u63a8\u8350\u5b89\u88c5 LTS \u957f\u671f\u652f\u6301\u7248&#xff0c;\u5982 17)<br \/>\n# \u5b89\u88c5 JDK 17:<br \/>\nsudo apt install -y openjdk-17-jdk<\/p>\n<p># 3. \u9a8c\u8bc1\u5b89\u88c5<br \/>\njava -version<br \/>\njavac -version <\/p>\n<p>2. CentOS \/ RHEL \/ Rocky Linux \u7cfb\u7edf<\/p>\n<p># 1. \u5b89\u88c5 OpenJDK (CentOS 8&#043;\/RHEL 8&#043; \u4f7f\u7528 dnf&#xff0c;\u65e7\u7248\u7528 yum)<br \/>\n# \u5b89\u88c5 JDK 17:<br \/>\nsudo dnf install -y java-17-openjdk-devel<br \/>\n# \u5982\u679c\u63d0\u793a\u627e\u4e0d\u5230\u5305&#xff0c;\u53ef\u80fd\u9700\u8981\u5148\u542f\u7528 CRB \u4ed3\u5e93 (CentOS 8\/9):<br \/>\n# sudo dnf config-manager &#8211;set-enabled crb<\/p>\n<p># 2. \u9a8c\u8bc1\u5b89\u88c5<br \/>\njava -version<br \/>\njavac -version <\/p>\n<p>\u6ce8\u610f&#xff1a;\u5305\u540d\u4e2d\u5e26 devel \u8868\u793a\u5305\u542b\u7f16\u8bd1\u5668 (javac)&#xff0c;\u53ea\u88c5 java-17-openjdk \u53ea\u6709\u8fd0\u884c\u73af\u5883 (java)\u3002\u5f00\u53d1\u5fc5\u987b\u88c5 devel \u7248\u672c\u3002<\/p>\n<p>Tip: \u4e3a\u4ec0\u4e48\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u7684 JDK \u4e0d\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff1f;<\/p>\n<p>\u539f\u7406&#xff1a;update-alternatives\u6216alternatives \u7cfb\u7edf<\/p>\n<p>\u5f53\u4f60\u901a\u8fc7 apt\u6216yum \u5b89\u88c5 OpenJDK \u65f6&#xff0c;\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5b8c\u6210\u4ee5\u4e0b\u914d\u7f6e&#xff1a;<\/p>\n<p>1.\u81ea\u52a8\u6ce8\u518c\u5230 alternatives \u7cfb\u7edf<\/p>\n<p># \u67e5\u770b\u5df2\u6ce8\u518c\u7684 Java \u7248\u672c<br \/>\nsudo update-alternatives &#8211;config java<br \/>\n# \u67e5\u770b\u5df2\u6ce8\u518c\u7684 Java \u7248\u672c<br \/>\nsudo alternatives &#8211;config java <\/p>\n<p>\u8f93\u51fa\u793a\u4f8b&#xff1a;<\/p>\n<p>There is 1 choice for the alternative java (providing \/usr\/bin\/java).<\/p>\n<p>  Selection    Path                                         Priority   Status<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n* 0            \/usr\/lib\/jvm\/java-17-openjdk-amd64\/bin\/java   1711      auto mode<\/p>\n<p>Press &lt;enter&gt; to keep the current choice[*], or type selection number: <\/p>\n<p>2.\u81ea\u52a8\u521b\u5efa\u7b26\u53f7\u94fe\u63a5<\/p>\n<ul>\n<li>\/usr\/bin\/java \u2192 \u6307\u5411\u5b9e\u9645\u5b89\u88c5\u8def\u5f84&#xff08;\u5982 \/usr\/lib\/jvm\/java-17-openjdk-amd64\/bin\/java&#xff09;<\/li>\n<li>\/usr\/bin\/javac \u2192 \u6307\u5411\u7f16\u8bd1\u5668\u8def\u5f84<\/li>\n<\/ul>\n<p>3.PATH \u5df2\u5305\u542b \/usr\/bin<\/p>\n<ul>\n<li>\u7cfb\u7edf\u9ed8\u8ba4 PATH \u5df2\u5305\u542b \/usr\/bin&#xff0c;\u56e0\u6b64\u76f4\u63a5\u53ef\u7528 java \u547d\u4ee4<\/li>\n<\/ul>\n<p>4.\u73af\u5883\u53d8\u91cf\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p>\u914d\u7f6e\u9879<\/p>\n<\/td>\n<td>\n<p>\u4f4d\u7f6e<\/p>\n<\/td>\n<td>\n<p>\u8bf4\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Java \u53ef\u6267\u884c\u6587\u4ef6<\/p>\n<\/td>\n<td>\n<p>\/usr\/bin\/java<\/p>\n<\/td>\n<td>\n<p>\u7b26\u53f7\u94fe\u63a5&#xff0c;\u7531 update-alternatives\u7ba1\u7406<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5b9e\u9645\u5b89\u88c5\u8def\u5f84<\/p>\n<\/td>\n<td>\n<p>\/usr\/lib\/jvm\/java-17-openjdk-amd64\/<\/p>\n<\/td>\n<td>\n<p>JDK \u5b8c\u6574\u5b89\u88c5\u76ee\u5f55<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>alternatives \u914d\u7f6e<\/p>\n<\/p>\n<\/td>\n<td>\n<p>\/var\/lib\/dpkg\/alternatives\/&#xff08;Ubuntu \/ Debian \u7cfb\u7edf&#xff09;<\/p>\n<\/td>\n<td>\u5b58\u50a8\u5404\u5907\u9009\u9879\u7ec4\u7684\u5143\u6570\u636e\u548c\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\/var\/lib\/alternatives\/&#xff08;CentOS \/ RHEL \u7cfb\u7edf&#xff09;<\/p>\n<\/td>\n<td>\u5b58\u50a8\u5404\u5907\u9009\u9879\u7ec4\u7684\u5143\u6570\u636e\u548c\u72b6\u6001<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u65b9\u6cd5\u4e8c&#xff1a;\u4e0b\u8f7d\u5b89\u88c5<\/h4>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u9700\u8981\u7279\u5b9a\u7248\u672c&#xff08;\u5982 Oracle JDK 8\/11\/17&#xff09;&#xff0c;\u6216\u670d\u52a1\u5668\u65e0\u6cd5\u8054\u7f51&#xff0c;\u6216\u9700\u8981\u5b89\u88c5\u5728\u7279\u5b9a\u76ee\u5f55\u3002 \u4f18\u70b9&#xff1a;\u5b8c\u5168\u63a7\u5236\u5b89\u88c5\u8def\u5f84\u548c\u7248\u672c&#xff0c;\u4e0d\u5f71\u54cd\u7cfb\u7edf\u81ea\u5e26 Java\u3002<\/p>\n<p>\u6b65\u9aa4 1&#xff1a;\u4e0b\u8f7d JDK<\/p>\n<p>&#xff08;1&#xff09;\u4e0b\u8f7d OpenJDK (Adoptium\/Temurin)<\/p>\n<ul>\n<li>\u4e0b\u8f7d\u5730\u5740&#xff1a;\u4e0b\u8f7d\u5730\u5740&#xff1a;https:\/\/adoptium.net\/ \u6216https:\/\/www.oracle.com\/java\/technologies\/downloads\/<\/li>\n<li>\u793a\u4f8b\u547d\u4ee4 (\u4ee5 JDK 17 x64 \u4e3a\u4f8b)&#xff1a;<\/li>\n<\/ul>\n<p>cd \/tmp<br \/>\n# \u4e0b\u8f7d Temurin  JDK 17<br \/>\nwget https:\/\/github.com\/adoptium\/temurin17-binaries\/releases\/download\/jdk-17.0.12%2B7\/OpenJDK17U-jdk_x64_linux_hotspot_17.0.12_7.tar.gz <\/p>\n<p>&#xff08;2&#xff09;\u767e\u5ea6\u7f51\u76d8\u4e0b\u8f7d<\/p>\n<p>\u94fe\u63a5&#xff1a;https:\/\/pan.baidu.com\/s\/1wk7-iJVr7BLwp_4L5hPFzA<\/p>\n<p>\u63d0\u53d6\u7801&#xff1a;btev<\/p>\n<p>\u590d\u5236\u8fd9\u6bb5\u5185\u5bb9\u6253\u5f00\u300c\u767e\u5ea6\u7f51\u76d8APP \u5373\u53ef\u83b7\u53d6\u300d<\/p>\n<p><span style=\"color:#fe2c24\">ps:<\/span>\u00a0 \u5c06\u4e0b\u8f7d\u7684redis\u5b89\u88c5\u5305\u901a\u8fc7SSH\u5de5\u5177\u628a\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u5668&#xff08;\u6211\u7528\u7684finalshell&#xff09;<\/p>\n<p>\u6b65\u9aa4 2&#xff1a;\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55<\/p>\n<p>\u901a\u5e38\u5efa\u8bae\u653e\u5728 \/usr\/local\/java \u76ee\u5f55\u4e0b<\/p>\n<p># \u521b\u5efa\u76ee\u5f55&#xff08;\u5982\u679c\u6709\u5219\u4e0d\u9700\u8981\u521b\u5efa\u76ee\u5f55&#xff09;<br \/>\nsudo mkdir -p \/usr\/local\/java <\/p>\n<p># \u89e3\u538b (\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u6587\u4ef6\u540d)<br \/>\nsudo tar -zxvf OpenJDK17U-jdk_x64_linux_hotspot_17.0.12_7.tar.gz -C \/usr\/local\/java<\/p>\n<p># \u91cd\u547d\u540d\u4e3a\u7b80\u6d01\u540d\u5b57 (\u53ef\u9009)<br \/>\nsudo mv \/usr\/local\/java\/jdk-17.0.12 \/usr\/local\/java\/jdk-17 <\/p>\n<p>\u6b65\u9aa4 3&#xff1a;\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p>\u9700\u8981\u914d\u7f6e JAVA_HOME \u548c PATH\u3002<\/p>\n<p>\u65b9\u5f0f 1&#xff1a;\u5168\u5c40\u914d\u7f6e&#xff08;\u63a8\u8350&#xff0c;\u5bf9\u6240\u6709\u7528\u6237\u751f\u6548&#xff09;<\/p>\n<p># \u521b\u5efa\u914d\u7f6e\u6587\u4ef6<br \/>\nsudo vim \/etc\/profile.d\/java.sh <\/p>\n<p><span style=\"color:#fe2c24\">ps: <\/span><span style=\"color:#0d0016\">\u4e0d\u5efa\u8bae\u628aJDK\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u4fe1\u606f\u653e\u5728\/etc\/profile&#xff0c;\u5e94\u653e\u5728\/etc\/profile.d\u76ee\u5f55\u4e0b\u3002\/etc\/profile\u548c \/etc\/profile.d \u662f Linux \u7cfb\u7edf\u4e2d\u7ba1\u7406\u5168\u5c40\u73af\u5883\u53d8\u91cf\u7684\u4e24\u4e2a\u5173\u952e\u90e8\u5206&#xff0c;\u5b83\u4eec\u7684\u5173\u7cfb\u53ef\u4ee5\u6982\u62ec\u4e3a&#xff1a;\u201c\u4e3b\u914d\u7f6e\u6587\u4ef6\u201d\u4e0e\u201c\u6a21\u5757\u5316\u6269\u5c55\u76ee\u5f55\u201d \u7684\u5173\u7cfb\u3002\u5177\u4f53\u539f\u56e0\u8bf7\u8bbf\u95ee<\/span><span style=\"color:#fe2c24\">\u8fd9\u7bc7\u535a\u5ba2<\/span><\/p>\n<p>\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>export JAVA_HOME&#061;\/usr\/local\/java\/jdk-17 # jdk\u5b89\u88c5\u76ee\u5f55<br \/>\nexport PATH&#061;$JAVA_HOME\/bin:$PATH <\/p>\n<p>\u4fdd\u5b58\u9000\u51fa\u540e&#xff0c;\u4f7f\u914d\u7f6e\u751f\u6548&#xff1a;<\/p>\n<p>source \/etc\/profile.d\/java.sh <\/p>\n<p>\u65b9\u5f0f 2&#xff1a;\u4ec5\u5f53\u524d\u7528\u6237\u751f\u6548 \u7f16\u8f91 ~\/.bashrc \u6216 ~\/.zshrc&#xff0c;\u8ffd\u52a0 export \u5185\u5bb9\u3002<\/p>\n<p>vim ~\/.bashrc  #\u7f16\u8f91~\/.bashrc<\/p>\n<p>export JAVA_HOME&#061;\/usr\/local\/java\/jdk-17 # jdk\u5b89\u88c5\u76ee\u5f55<br \/>\nexport PATH&#061;$JAVA_HOME\/bin:$PATH <\/p>\n<p>\u66f4\u65b0\u914d\u7f6e<\/p>\n<p>source ~\/.bashrc <\/p>\n<p>\u6b65\u9aa4 4&#xff1a;\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<p># \u67e5\u770b\u7248\u672c<br \/>\njava -version<\/p>\n<p># \u67e5\u770bJava\u8def\u5f84<br \/>\necho $JAVA_HOME <\/p>\n<p>\u5982\u679c\u8f93\u51fa\u4e86\u7248\u672c\u53f7\u4e14 $JAVA_HOME \u8def\u5f84\u6b63\u786e&#xff0c;\u5219\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<hr \/>\n<h4>\u5e38\u89c1\u95ee\u9898\u4e0e\u591a\u7248\u672c\u7ba1\u7406<\/h4>\n<p>1. \u5982\u4f55\u5207\u6362\u591a\u4e2a JDK \u7248\u672c&#xff1f;<\/p>\n<p>\u8be6\u7ec6\u64cd\u4f5c\u8bf7\u770b\u8fd9\u7bc7\u535a\u5ba2<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Linux \u73af\u5883\u4e0b\u5b89\u88c5 JDK \u4e3b\u8981\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a;\u5305\u7ba1\u7406\u5668\u5b89\u88c5&#xff08;\u7b80\u5355\u5feb\u6377&#xff09; \u548c \u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5&#xff08;\u7075\u6d3b&#xff0c;\u53ef\u6307\u5b9a\u7279\u5b9a\u7248\u672c&#xff09;\u3002<br \/>\n\u4ee5\u4e0b\u662f\u9488\u5bf9\u4e3b\u6d41\u53d1\u884c\u7248&#xff08;Ubuntu\/Debian \u548c CentOS\/RHEL&#xff09;\u7684\u8be6\u7ec6\u6559\u7a0b\u3002 \u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5<br \/>\n\u9002\u7528\u573a\u666f&#xff1a;\u5feb\u901f\u642d\u5efa\u73af\u5883&#xff0c;\u4e0d\u5f3a\u5236\u8981\u6c42\u7279\u5b9a\u5c0f\u7248\u672c\u53f7&#xff0c;\u8ffd\u6c42\u7a33\u5b9a\u548c\u7ef4\u62a4\u65b9\u4fbf\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,58,44],"topic":[],"class_list":["post-80485","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-linux","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/80485.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728 Linux \u73af\u5883\u4e0b\u5b89\u88c5 JDK \u4e3b\u8981\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a;\u5305\u7ba1\u7406\u5668\u5b89\u88c5&#xff08;\u7b80\u5355\u5feb\u6377&#xff09; \u548c \u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5&#xff08;\u7075\u6d3b&#xff0c;\u53ef\u6307\u5b9a\u7279\u5b9a\u7248\u672c&#xff09;\u3002 \u4ee5\u4e0b\u662f\u9488\u5bf9\u4e3b\u6d41\u53d1\u884c\u7248&#xff08;Ubuntu\/Debian \u548c CentOS\/RHEL&#xff09;\u7684\u8be6\u7ec6\u6559\u7a0b\u3002 \u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5 \u9002\u7528\u573a\u666f&#xff1a;\u5feb\u901f\u642d\u5efa\u73af\u5883&#xff0c;\u4e0d\u5f3a\u5236\u8981\u6c42\u7279\u5b9a\u5c0f\u7248\u672c\u53f7&#xff0c;\u8ffd\u6c42\u7a33\u5b9a\u548c\u7ef4\u62a4\u65b9\u4fbf\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80485.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-05T01:17:23+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80485.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80485.html\",\"name\":\"Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-05T01:17:23+00:00\",\"dateModified\":\"2026-03-05T01:17:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80485.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80485.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80485.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/80485.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728 Linux \u73af\u5883\u4e0b\u5b89\u88c5 JDK \u4e3b\u8981\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a;\u5305\u7ba1\u7406\u5668\u5b89\u88c5&#xff08;\u7b80\u5355\u5feb\u6377&#xff09; \u548c \u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5&#xff08;\u7075\u6d3b&#xff0c;\u53ef\u6307\u5b9a\u7279\u5b9a\u7248\u672c&#xff09;\u3002 \u4ee5\u4e0b\u662f\u9488\u5bf9\u4e3b\u6d41\u53d1\u884c\u7248&#xff08;Ubuntu\/Debian \u548c CentOS\/RHEL&#xff09;\u7684\u8be6\u7ec6\u6559\u7a0b\u3002 \u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5 \u9002\u7528\u573a\u666f&#xff1a;\u5feb\u901f\u642d\u5efa\u73af\u5883&#xff0c;\u4e0d\u5f3a\u5236\u8981\u6c42\u7279\u5b9a\u5c0f\u7248\u672c\u53f7&#xff0c;\u8ffd\u6c42\u7a33\u5b9a\u548c\u7ef4\u62a4\u65b9\u4fbf\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/80485.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-05T01:17:23+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/80485.html","url":"https:\/\/www.wsisp.com\/helps\/80485.html","name":"Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-05T01:17:23+00:00","dateModified":"2026-03-05T01:17:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80485.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80485.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80485.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u73af\u5883\u4e0bJDK\u5b89\u88c5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=80485"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80485\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80485"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}