{"id":1560,"date":"2025-03-21T10:26:30","date_gmt":"2025-03-21T02:26:30","guid":{"rendered":"https:\/\/minglelu.cn\/?p=1560"},"modified":"2025-03-21T10:27:24","modified_gmt":"2025-03-21T02:27:24","slug":"centos-%e4%b8%8b%e8%bd%bdjava17%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/minglelu.cn\/index.php\/2025\/03\/21\/1560\/","title":{"rendered":"centos \u4e0b\u8f7djava17\u7248\u672c"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u94fe\u63a5\u53ef\u80fd\u4f1a\u5931\u6548\u3002<br>\u66ff\u4ee3\u65b9\u6cd5\u6765\u5b89\u88c5 OpenJDK 17\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u4f7f\u7528 BellSoft Liberica JDK 17\uff1a<\/strong>\u00a0BellSoft \u63d0\u4f9b\u7684 Liberica JDK \u662f\u4e00\u4e2a OpenJDK \u7684\u53d1\u884c\u7248\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u5b89\u88c5\uff1a<code>sudo yum install -y wget sudo wget https:\/\/download.bell-sw.com\/java\/17.0.1+12\/bellsoft-jdk17.0.1+12-linux-amd64.rpm sudo yum localinstall -y bellsoft-jdk17.0.1+12-linux-amd64.rpm<\/code><\/li>\n\n\n\n<li><strong>\u4f7f\u7528 Amazon Corretto JDK 17\uff1a<\/strong>\u00a0Amazon Corretto \u4e5f\u662f\u4e00\u4e2a OpenJDK \u7684\u53d1\u884c\u7248\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5b89\u88c5\uff1a<code>sudo yum install -y wget sudo wget https:\/\/corretto.aws\/downloads\/latest\/amazon-corretto-17-x64-linux-jdk.rpm sudo yum localinstall -y amazon-corretto-17-x64-linux-jdk.rpm<\/code><\/li>\n\n\n\n<li><strong>\u4f7f\u7528 Azul Zulu JDK 17\uff1a<\/strong>\u00a0Azul Zulu \u63d0\u4f9b\u4e86\u591a\u79cd OpenJDK \u7684\u53d1\u884c\u7248\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5b89\u88c5\uff1a<code>sudo yum install -y wget sudo wget https:\/\/cdn.azul.com\/zulu\/bin\/zulu17.28.13-ca-jdk17.0.1-linux.x86_64.rpm sudo yum localinstall -y zulu17.28.13-ca-jdk17.0.1-linux.x86_64.rpm<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1 Java \u7248\u672c\uff1abash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java -version<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u94fe\u63a5\u53ef\u80fd\u4f1a\u5931\u6548\u3002\u66ff\u4ee3\u65b9\u6cd5\u6765\u5b89\u88c5 OpenJDK 17\uff1a \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1 Java \u7248\u672c\uff1abash<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[15],"class_list":["post-1560","post","type-post","status-publish","format-standard","hentry","category-cloud-computing","tag-centos7"],"_links":{"self":[{"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/posts\/1560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1560"}],"version-history":[{"count":2,"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/posts\/1560\/revisions"}],"predecessor-version":[{"id":1562,"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/posts\/1560\/revisions\/1562"}],"wp:attachment":[{"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minglelu.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}