{"id":167,"date":"2012-03-07T00:01:28","date_gmt":"2012-03-06T16:01:28","guid":{"rendered":"http:\/\/tengs.info\/?p=167"},"modified":"2012-03-07T00:01:28","modified_gmt":"2012-03-06T16:01:28","slug":"centos-6-0%e4%b8%8a%e7%9a%84jdk","status":"publish","type":"post","link":"http:\/\/www.tengs.info\/?p=167","title":{"rendered":"CentOS 6.0\u4e0a\u7684JDK"},"content":{"rendered":"<p>\u8fd9\u51e0\u5929\u73a9Hadoop\uff0c\u7ecf\u5e38\u6363\u9f13CentOS\uff0c\u53d1\u73b0\u8fd9\u4e2a\u7cfb\u7edf\u5176\u5b9e\u505a\u5f97\u771f\u4e0d\u9519\uff0c\u867d\u7136\u662f\u5728Red Hat\u7684\u6e90\u7801\u4e0a\u7f16\u8bd1\u6765\u7684\uff0c\u4f46\u611f\u89c9\u76f8\u6bd4Red Hat\u8fd8\u8981\u7565\u80dc\u4e00\u7b79\u3002\u9996\u5148\u662f\u6574\u4e2a\u7528\u6237\u4f53\u9a8c\u505a\u5f97\u5f88\u597d\uff0c\u4e8b\u5b9e\u4e0a\u5b83\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u5b66\u4e60\u4e86Windows\u7684\u6a21\u5f0f\uff0c\u8fd9\u6216\u8bb8\u662fWindows\u505a\u5f97\u592a\u6210\u529f\u4e86\uff0c\u5f53\u7136\uff0c\u8fd9\u4e48\u505a\u5bf9\u4e8e\u4e60\u60efWindows\u7684\u7528\u6237\u800c\u8a00\u65e0\u7591\u662f\u5f88\u6709\u4eb2\u548c\u529b\u7684\uff0c\u6bd4\u5982\u5728\u6211\u4e0b\u610f\u8bc6\u7684\u6309\u4e0bF2\u5e0c\u671b\u5bf9\u67d0\u4e00\u4e2a\u6587\u4ef6\u91cd\u547d\u540d\u65f6\u60ca\u5947\u7684\u53d1\u73b0\u5b83\u7684\u529f\u80fd\u7684\u786e\u5b58\u5728\uff0c\u8fd9\u662f\u5f88\u4ee4\u4eba\u5370\u8c61\u6df1\u523b\u7684\uff0c\u81f3\u4e8ectrl+C\u4e4b\u7c7b\u5e7f\u4e3a\u4eba\u77e5\u7684\u529f\u80fd\u952e\u5c31\u66f4\u662f\u5f97\u5230\u4fdd\u7559\u4e86\u3002\u5176\u6b21\u662fCentOS\u7ee7\u627f\u4e86linux\u7279\u6709\u7684\u5185\u6838\u4f18\u52bf\uff0c\u76f8\u6bd4windows\u786e\u5b9e\u662f\u6709\u5176\u9ad8\u8d85\u7684\u5730\u65b9\uff08\u6709\u4e2a\u7b11\u8bdd\u8bf4linux\u7cfb\u7edf\u76f8\u6bd4windows\u8981\u5b89\u5168\u5f88\u591a\uff0c\u56e0\u4e3awindows\u7528\u6237\u5f88\u591a\uff0c\u6240\u4ee5\u4e5f\u5c31\u6210\u4e3a\u4e86\u9ed1\u5ba2\u4eec\u6b8b\u5bb3\u7684\u9996\u9009\u2014\u2014\u57fa\u6570\u5927\uff0c\u76ee\u6807\u597d\u627e\u561b\u3002\u800clinux\u7528\u6237\u672c\u8eab\u5c31\u5c11\uff0c\u800c\u4e14\u7531\u4e8e\u5386\u53f2\u539f\u56e0\uff0c\u5927\u591a\u662f\u6280\u672f\u6d41\u5728\u7528\uff0c\u9632\u8303\u610f\u8bc6\u4e5f\u666e\u904d\u8f83\u9ad8\uff0c\u6240\u4ee5\u5f88\u5c11\u6709\u9ed1\u5ba2\u539f\u56e0\u82b1\u65f6\u95f4\u53bb\u4e13\u7814\u7834\u89e3\u2014\u2014\u5176\u5b9e\u8fd9\u8fd8\u662f\u6709\u4e00\u5b9a\u9053\u7406\u7684\uff09\u3002<\/p>\n<p>\u4eca\u5929\u4e3a\u4e86\u5378\u8f7dCentOS\u4e0a\u81ea\u5e26\u7684OpenJDK\u91cd\u88c5JDK1.6\u82b1\u8d39\u4e86\u5f88\u591a\u529f\u592b\u3002\u539f\u672c\u662f\u5148\u7528\u547d\u4ee4\u884c\u89e3\u51b3\u5378\u8f7d\u95ee\u9898\u7684\uff0cgoogle\u4e86\u4e00\u4e0b\u6307\u4ee4\uff0c\u53d1\u73b0\u770b\u4e0a\u53bb\u4e71\u4e03\u516b\u7cdf\uff0c\u4e8e\u662f\u672c\u7740\u78b0\u78b0\u8fd0\u6c14\u7684\u6001\u5ea6\u627e\u4e86\u627e\uff0c\u53d1\u73b0\u5728\u684c\u9762\u2014\u2014\u7cfb\u7edf\u2014\u2014\u7ba1\u7406\u4e4b\u4e0b\u771f\u7684\u6709\u4e00\u4e2a\u5378\u8f7d\u8f6f\u4ef6\u7684\u5e94\u7528\uff0c\u548cwindows\u7684\u5378\u8f7d\u8f6f\u4ef6\u5e94\u7528\u6ca1\u4ec0\u4e48\u5927\u533a\u522b\u3002\u4e8e\u662f\u987a\u5229\u5378\u4e0b\u4e86OpenJDK\u3002\u4e4b\u540e\u5b89\u88c5jdk1.6\uff0c\u5b8c\u6210\u4e4b\u540e\uff0c\u8bd5\u4e86\u4e00\u4e0bjava -version\uff0c\u5374\u770b\u5230\u4e86\u5f53\u524d\u7248\u672c\u662fjdk1.5\u3002\u5728\u5378\u8f7d\u8f6f\u4ef6\u7684\u5e94\u7528\u7a97\u53e3\u4e0b\u53ef\u4ee5\u89c1\u5230jdk1.6\uff0c\u53ef\u89c1\u5e94\u8be5\u662f\u5b89\u88c5\u6210\u529f\u4e86\uff0c\u4e8e\u662f\u8bd5\u4e86\u4e0bwhich java\uff0c\u770b\u5230\u7684\u8def\u5f84\u6307\u5411\u4e86\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\uff0c\u8be5\u5feb\u6377\u65b9\u5f0f\u53c8\u6307\u5411\u4e86\u53e6\u5916\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\uff0c\u6700\u540e\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\u6307\u5411\u4e86\u4e00\u4e2a\u83ab\u540d\u5947\u5999\u7684\u6587\u4ef6\u5939\uff0c\u5c1d\u8bd5\u5378\u8f7djdk1.5\u5374\u53d1\u73b0\u6ca1\u627e\u5230\uff0c\u65e0\u5948\u4e4b\u4e0b\u53ea\u597d\u5728jdk1.6\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\u627e\u5230\u4e86java\uff0c\u751f\u6210\u4e86\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\uff0c\u7528\u8be5\u5feb\u6377\u65b9\u5f0f\u66ff\u6362\u4e86which java\u6307\u5411\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u95ee\u9898\u89e3\u51b3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u51e0\u5929\u73a9Hadoop\uff0c\u7ecf\u5e38\u6363\u9f13CentOS\uff0c\u53d1\u73b0\u8fd9\u4e2a\u7cfb\u7edf\u5176\u5b9e\u505a\u5f97\u771f\u4e0d\u9519\uff0c\u867d\u7136\u662f\u5728Red Hat\u7684\u6e90\u7801\u4e0a\u7f16\u8bd1\u6765\u7684 &#8230; <span class=\"more\"><a class=\"more-link\" href=\"http:\/\/www.tengs.info\/?p=167\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[11,17,23,37],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-tengs","4":"post-167","6":"format-standard","7":"category-document","8":"post_tag-centos","9":"post_tag-hadoop","10":"post_tag-jdk","11":"post_tag-cloud-computing"},"_links":{"self":[{"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tengs.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167"}],"version-history":[{"count":0,"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/posts\/167\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.tengs.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tengs.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tengs.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}