{"id":228392,"date":"2021-10-21T10:29:27","date_gmt":"2021-10-21T02:29:27","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=228392"},"modified":"2021-10-14T19:30:10","modified_gmt":"2021-10-14T11:30:10","slug":"linux-java","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-java.html","title":{"rendered":"Linux \u4e0b\u624b\u52a8\u5b89\u88c5 Java"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u4f7f\u7528 Linux \u53d1\u884c\u7248\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u6765\u5b89\u88c5 Java \u8f6f\u4ef6\u5305\u00a0\u662f\u5f88\u5bb9\u6613\u7684\u3002\u7136\u800c\uff0c\u6709\u65f6\u4f60\u9700\u8981\u624b\u52a8\u5b89\u88c5 Java\u3002\u8fd9\u5bf9\u57fa\u4e8e Java \u7684\u5e94\u7528\u670d\u52a1\u5668\uff08\u5982 Tomcat \u6216 JBoss\uff09\u7684\u7ba1\u7406\u5458\u7279\u522b\u91cd\u8981\u3002\u8bb8\u591a\u5f00\u6e90\u548c\u4e13\u6709\u8f6f\u4ef6\u4ea7\u54c1\u90fd\u4f9d\u8d56\u4e8e\u8fd9\u4e9b\u670d\u52a1\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5f00\u53d1\u8005\u6216\u8fd0\u884c\u65f6\u5957\u4ef6\uff1f<\/strong><\/div>\n Java \u865a\u62df\u673aJava Virtual Machine\uff08JVM\uff09\u4ee5\u4e24\u79cd\u4e0d\u540c\u7684\u5f62\u5f0f\u63d0\u4f9b\uff1aJava \u5f00\u53d1\u5de5\u5177\u5305Java Development Kit\uff08JDK\uff09\u6216\u00a0Java \u8fd0\u884c\u65f6\u73af\u5883Java Runtime Environment\uff08JRE\uff09\u3002<\/p>\n \u8f6f\u4ef6\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u9700\u8981 JDK\u3002\u5b83\u5305\u542b\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u6d4b\u8bd5\u6e90\u4ee3\u7801\u6240\u9700\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002\u90e8\u7f72\u4e00\u4e2a\u9884\u5148\u5efa\u7acb\u7684 Java \u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u53ea\u9700\u8981 JRE\u3002\u5b83\u4e0d\u5305\u62ec\u7f16\u8bd1\u5668\u548c\u5176\u4ed6\u5f00\u53d1\u5de5\u5177\u3002\u7531\u4e8e\u5b89\u5168\u6027\u7684\u63d0\u9ad8\u548c\u7a7a\u95f4\u7684\u9650\u5236\uff0c\u901a\u5e38\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5b89\u88c5 JRE\u3002<\/p>\n \u83b7\u53d6 Java<\/strong><\/div>\n \u4f60\u53ef\u4ee5\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u5f00\u6e90\u7684 Java \u8f6f\u4ef6\u3002\u4f60\u53ef\u4ee5\u5728\u00a0Red Hat Developer\u3001Adoptium.net\u00a0\u4e0b\u8f7d OpenJDK \u6253\u5305\u6587\u4ef6\uff0c\u6216\u4ece Azul \u4e0b\u8f7d\u00a0Zulu \u793e\u533a\u7248\u00a0\u3002<\/p>\n \u5b89\u88c5 Java<\/strong><\/div>\n \u8bbe\u7f6e\u4e00\u4e2a\u76ee\u5f55\u6765\u5b58\u653e Java \u6587\u4ef6\u3002\u6211\u559c\u6b22\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u540d\u4e3a\u00a0 \u8ba9\u6211\u4eec\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u4f7f\u7528 JDK\u3002\u5c06\u4e0b\u8f7d\u7684\u6587\u4ef6\u4fdd\u5b58\u5230\u00a0 \u63d0\u53d6\u8be5\u6253\u5305\u6587\u4ef6\u3002\u6ce8\u610f\uff0ctar \u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u76ee\u5f55\uff1a<\/p>\n \u4f7f\u7528 -version\u00a0\u9009\u9879\u786e\u8ba4\u65b0 JVM \u7684\u7248\u672c\u3002<\/p>\n JVM \u7684\u7248\u672c\u8f93\u51fa\u770b\u8d77\u6765\u7c7b\u4f3c\u8fd9\u6837\uff1a<\/p>\n \u4e3a\u4e86\u786e\u4fdd\u4e00\u4e2a\u7279\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\uff0c\u5b83\u9700\u8981\u786e\u5207\u5730\u77e5\u9053\u5982\u4f55\u5b9a\u4f4d JVM\u3002\u6709\u4e24\u4e2a\u4e3b\u8981\u7684\u53d8\u91cf\u9700\u8981\u8bbe\u7f6e\uff1aJAVA_HOME\u00a0\u548c\u00a0PATH\u3002<\/p>\n \u8fd9\u4e9b\u53ef\u4ee5\u5728\u7528\u6237\u7684\u00a0.bashrc\u00a0\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u3002\u786e\u4fdd\u8fd9\u4e9b\u53d8\u91cf\u51fa\u73b0\u5728\u00a0\u4efb\u4f55\u8bbe\u7f6e PATH \u7684\u73b0\u6709\u4ee3\u7801\u00a0\u4e4b\u540e\uff1a<\/p>\n \u6709\u51e0\u79cd\u60c5\u51b5\u9700\u8981\u624b\u52a8\u5b89\u88c5 Java\u3002\u8bf7\u8003\u8651\u4ee5\u4e0b\u4e09\u79cd\u60c5\u51b5\uff1a<\/p>\n \u4e00\u79cd\u60c5\u51b5\u53ef\u80fd\u662f\u8981\u6c42\u4f7f\u7528\u4e0d\u540c\u7684\uff0c\u4e5f\u8bb8\u662f\u8f83\u65e9\u7684\uff0c\u5728\u4f60\u7684 Linux \u53d1\u884c\u7248\u7684\u8f6f\u4ef6\u5e93\u4e2d\u5df2\u7ecf\u6ca1\u6709\u7684 Java \u7248\u672c\u3002<\/p>\n \u53e6\u4e00\u4e2a\u4f8b\u5b50\u53ef\u80fd\u662f\u7531\u5b89\u5168\u63a8\u52a8\u7684\u51b3\u5b9a\uff0c\u5373 Java \u4e0d\u4f1a\u88ab\u9ed8\u8ba4\u5b89\u88c5\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6216\u5728\u201c\u6839\u7ea7\u522b\u201d\u4e0a\u3002<\/p>\n \u7b2c\u4e09\u79cd\u60c5\u51b5\u662f\u53ef\u80fd\u9700\u8981\u51e0\u4e2a\u4e0d\u540c\u7248\u672c\u7684 Java\uff0c\u901a\u5e38\u662f\u56e0\u4e3a J2EE Web \u5e94\u7528\u7a0b\u5e8f\u7684\u591a\u4e2a\u5b9e\u4f8b\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u3002\u7531\u4e8e\u8d8a\u6765\u8d8a\u591a\u5730\u4f7f\u7528\u865a\u62df\u673a\u548c\u5bb9\u5668\u6765\u9694\u79bb\u8fdb\u7a0b\uff0c\u8fd9\u79cd\u64cd\u4f5c\u7cfb\u7edf\u5171\u4eab\u5728\u4eca\u5929\u5df2\u7ecf\u4e0d\u592a\u5e38\u89c1\u4e86\u3002\u7136\u800c\uff0c\u7531\u4e8e\u9700\u8981\u7ef4\u62a4\u4e0d\u540c\u7684\u5bb9\u5668\u955c\u50cf\uff0c\u5bf9\u624b\u52a8\u5b89\u88c5\u7684\u7406\u89e3\u4ecd\u7136\u81f3\u5173\u91cd\u8981\u3002<\/p>\n \u6211\u6f14\u793a\u4e86\u6211\u624b\u52a8\u5b89\u88c5 Java \u8fd0\u884c\u65f6\u73af\u5883\u7684\u65b9\u5f0f\uff0c\u4f46\u4f60\u53ef\u4ee5\u5236\u5b9a\u4e00\u4e2a\u6700\u9002\u5408\u4f60\u9700\u6c42\u7684\u60ef\u4f8b\u3002\u6700\u7ec8\uff0c\u624b\u52a8\u5b89\u88c5\u8ba9\u7528\u6237\u53ef\u4ee5\u66f4\u597d\u7684\u63a7\u5236 Java \u8fd0\u884c\u65f6\u73af\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Java \u865a\u62df\u673aJava Virtual Machine\uff08JVM\uff09\u4ee5\u4e24\u79cd\u4e0d\u540c\u7684\u5f62\u5f0f\u63d0\u4f9b\uff1aJava \u5f00\u53d1\u5de5\u5177\u5305J […]<\/p>\n","protected":false},"author":323,"featured_media":160442,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-228392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=228392"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228392\/revisions"}],"predecessor-version":[{"id":228415,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228392\/revisions\/228415"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/160442"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=228392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=228392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=228392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |