{"id":294103,"date":"2024-11-02T20:03:31","date_gmt":"2024-11-02T12:03:31","guid":{"rendered":"https:\/\/lrxjmw.cn\/jsjhjblpzggb.html"},"modified":"2024-11-02T20:03:31","modified_gmt":"2024-11-02T12:03:31","slug":"jsjhjblpzggb","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/jsjhjblpzggb.html","title":{"rendered":"\u8ba1\u7b97\u673a\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u66f4\u6539\uff1a\u4e0d\u540c\u7cfb\u7edf\u73af\u5883\u4e0b\u7684\u64cd\u4f5c\u65b9\u6cd5"},"content":{"rendered":"

\u719f\u6089\u8ba1\u7b97\u673a\u7684\u4eba\u90fd\u6653\u5f97\uff0c\u5728\u7a0b\u5e8f\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u987b\u8981\u5bf9\u8ba1\u7b97\u673a\u8fdb\u884c\u73af\u5883\u53d8\u91cf\u7684\u914d\u7f6e\u548c\u4fee\u6539\u64cd\u4f5c\uff0c\u5426\u5219\u8ba1\u7b97\u673a\u5c31\u96be\u4ee5\u6b63\u5e38\u8fdb\u884c\u7a0b\u5e8f\u5f00\u53d1\u3002\u800c\u5728\u4e0d\u540c\u7cfb\u7edf\u73af\u5883\u4e0b\u8fdb\u884c\u73af\u5883\u53d8\u91cf\u7684\u914d\u7f6e\u4fee\u6539\u5e38\u5e38\u662f\u6709\u4e0d\u540c\u4e4b\u5904\u7684\u3002\u4f8b\u5982\uff0c\u5f53\u6211\u4eec\u4f7f\u7528Linux<\/a>\u64cd\u4f5c\u7cfb\u7edf\u7684\u8ba1\u7b97\u673a\u53bb\u8fdb\u884c\u7a0b\u5e8f\u7684\u5f00\u53d1\uff0c\u90a3\u8981\u600e\u4e48\u8fdb\u884c\u73af\u5883\u53d8\u91cf\u7684\u914d\u7f6e\u548c\u4fee\u6539\u5462\uff1f<\/p>\n

\u65b9\u5f0f1\uff1a\u66f4\u6539\/etc\/profile\u6587\u4ef6<\/p>\n

\u8fd9\u4e9b\u65b9\u5f0f\u662f\u9996\u9009\u65b9\u5f0f\uff0c\u5982\u679c\u4f60\u7684\u7b14\u8bb0\u672c\u4ec5\u4ec5\u53ea\u662f\u62ff\u6765\u5f00\u53d1\u7a0b\u5e8f\u800c\u8fdb\u884c\u4f7f\u7528\uff0c\u4e0d\u5bf9\u5176\u4ed6\u6108\u52a0\u590d\u6742\u7684\u529f\u80fd\u8fdb\u884c\u64cd\u4f5c\u7684\u8bdd\uff0c\u6b64\u65b9\u5f0f\u4e5f\u662f\u6700\u4f18\u5148\u7684\u3002<\/p>\n

\u5177\u4f53\u7684\u64cd\u4f5c\u6b65\u9aa4\u4e3a\uff1a\u6253\u5f00\/etc\/profile\uff0c\u6253\u5f00\u7684\u65b9\u6cd5\u662f\u5b9e\u7528\u6587\u672c\u7f16\u8f91\u5668\u8fdb\u884c\u64cd\u4f5c\uff1b<\/p>\n

\u6253\u5f00\u6210\u529f\u540e\uff0c\u6211\u4eec\u5728profile\u6587\u4ef6\u5185\u90e8\u7684\u76f8\u5173\u5185\u5bb9\u7684\u672b\u5c3e\u52a0\u5165\u5173\u4e8e\u66f4\u6539\u73af\u5883\u53d8\u91cf\u7684\u547d\u4ee4<\/a>\u4ee3\u7801\uff0c\u8fd9\u79cd\u4ee3\u7801\u548c\u6211\u4eec\u5728Windows\u73af\u5883\u4e0b\u66f4\u6539\u73af\u5883\u53d8\u91cf\u7684\u4ee3\u7801\u662f\u57fa\u672c\u76f8\u540c\u7684\uff0c\u5b83\u4eec\u5206\u4e3a6\u6bb5\uff1a<\/p>\n

\u73af\u5883\u53d8\u91cflinux_linux\u73af\u5883\u53d8\u91cf\u600e\u4e48\u751f\u6548_linux \u5b89\u88c5gdb \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n

JAVA_HOME=\/usr\/share\/jdk1.5.0_05\uff08\u6b64\u5904\u8f93\u5165\u7684\u662f\u81ea\u5df1\u7b14\u8bb0\u672c\u4e0aJDK\u6587\u4ef6\u7684\u5b89\u88c5\u8def\u5f84\uff09<\/p>\n

PATH=$JAVA_HOME\/bin:$PATH<\/p>\n

CLASSPATH=.:$JAVA_HOME\/lib\/dt.jar:$JAVA_HOME\/lib\/tools.jar<\/p>\n

exportJAVA_HOME<\/p>\n

exportPATH<\/p>\n

linux \u5b89\u88c5gdb \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf_\u73af\u5883\u53d8\u91cflinux_linux\u73af\u5883\u53d8\u91cf\u600e\u4e48\u751f\u6548<\/p>\n

exportCLASSPATH<\/p>\n

\u8f93\u5165\u7136\u540e\u786e\u8ba4\u6ca1\u6709\u9519\u8bef\u518d\u70b9\u51fb\u4fdd\u5b58\uff0c\u4e4b\u540e\u4f5c\u9000\u51fa\u5904\u7406\u5e76\u91cd\u65b0\u767b\u5165\u3002<\/p>\n

\u65b9\u5f0f2\uff1a\u66f4\u6539.bashrc\u6587\u4ef6<\/p>\n

\u4f7f\u7528\u6b64\u79cd\u65b9\u6cd5\u8fdb\u884c\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u4f1a\u6bd4\u4e0a\u4e00\u79cd\u65b9\u5f0f\u66f4\u4e3a\u5b89\u5168\uff0c\u5b83\u662f\u9488\u5bf9\u67d0\u4e00\u4e2a\u7279\u5b9a\u7528\u6237\u800c\u8fdb\u884c\u64cd\u4f5c\u66f4\u6539\u7684\uff0c\u4f8b\u5982\uff0c\u5047\u82e5\u6211\u4eec\u8981\u7ed9\u67d0\u4e00\u4e2a\u8ba1\u7b97\u673a\u7684\u7528\u6237\u6743\u9650\u8fdb\u884c\u914d\u7f6elinux\u670d\u52a1\u5668\u7ef4\u62a4\uff0c\u8fd9\u4e48\u5c31\u5728\u6b64\u7528\u6237\u7684\u76f8\u5173\u6587\u4ef6\u76ee\u5f55\u4e4b\u4e0b\u7684.bashrc\u6587\u4ef6\u5373\u53ef\uff0c\u5177\u4f53\u7684\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

\u9996\u5148\u4ecd\u7136\u662f\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u8fdb\u884c\u64cd\u4f5c\uff0c\u6253\u5f00\u67d0\u4e00\u4e2a\u7279\u5b9a\u7528\u6237\u76ee\u5f55\u4e0b\u7684.bashrc\u6587\u4ef6\u8fdb\u884c\u7f16\u8f91\u64cd\u4f5c\uff0c\u6211\u4eec\u5728.bashrc\u6587\u4ef6\u7684\u5185\u5bb9\u672b\u5c3e\u52a0\u5165\u65b0\u7684\u547d\u4ee4\u53c2\u6570\u4ee3\u7801\uff0c\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n

setJAVA_HOME=\/usr\/share\/jdk1.5.0_05<\/p>\n

exportJAVA_HOME<\/p>\n

setPATH=$JAVA_HOME\/bin:$PATH<\/p>\n

exportPATH<\/p>\n

linux \u5b89\u88c5gdb \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf_\u73af\u5883\u53d8\u91cflinux_linux\u73af\u5883\u53d8\u91cf\u600e\u4e48\u751f\u6548<\/p>\n

setCLASSPATH=.:$JAVA_HOME\/lib\/dt.jar:$JAVA_HOME\/lib\/tools.jar<\/p>\n

exportCLASSPATH<\/p>\n

\u540c\u7b2c\u4e00\u4e2a\u65b9\u5f0f\u63cf\u8ff0\u7684\u4e00\u6837\u7f8e\u56fdlinux\u4e3b\u673a\uff0c\u7b2c\u4e00\u884c\u7684\u4ee3\u7801\u6700\u672b\u5c3e\u8f93\u5165\u7684\u5185\u5bb9\u662f\u81ea\u5df1\u8ba1\u7b97\u673a\u4e0aJDK\u6587\u4ef6\u7684\u5b89\u88c5\u8def\u5f84\u3002\u66f4\u6539\u5b8c\u6bd5\u5e76\u786e\u8ba4\u65e0\u8bef\u540e\uff0c\u70b9\u51fb\u4fdd\u5b58\u4e4b\u540e\u91cd\u65b0\u767b\u5165\u3002<\/p>\n

\u65b9\u5f0f3\uff1a\u5728shell\u4e0b\u8bbe\u7f6e\u53d8\u91cf<\/p>\n

Shell\u66f4\u6539\u7684\u73af\u5883\u914d\u7f6e\u66f4\u6539\u548c\u8bbe\u7f6e\u65b9\u5f0f\u901a\u5e38\u4e0d\u5e38\u7528\uff0c\u7531\u4e8eshell\u66f4\u6539\u7684\u65b9\u5f0f\u5177\u6709\u5f88\u5f3a\u7684\u4e34\u65f6\u6027\uff0c\u5b83\u7684\u66f4\u6539\u548c\u914d\u7f6e\u64cd\u4f5c\u662f\u6682\u65f6\u7684linux \u5b89\u88c5gdb \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>\uff0c\u672c\u6b21\u64cd\u4f5c\u5b8c\u6bd5\u5e76\u5173\u6389\u8ba1\u7b97\u673a\u4ee5\u540e\uff0c\u6240\u6709\u66f4\u6539\u8fc7\u7684\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u5c31\u4f1a\u88ab\u6d88\u9664\uff0c\u4e0a\u6b21\u4f7f\u7528\u65f6\u8fd8\u987b\u8981\u91cd\u65b0\u914d\u7f6e\u3002\u6b64\u65b9\u5f0f\u7684\u64cd\u4f5c\u65b9\u6cd5\u662f\uff0c\u5728shell\u7ec8\u7aef\u8f93\u5165\u5e76\u6267\u884c\u547d\u4ee4\u4ee3\u7801\uff1a<\/p>\n

exportJAVA_HOME=\/usr\/share\/jdk1.5.0_05<\/p>\n

exportPATH=$JAVA_HOME\/bin:$PATH<\/p>\n

exportCLASSPATH=.:$JAVA_HOME\/lib\/dt.jar:$JAVA_HOME\/lib\/tools.jar<\/p>\n

\u8fd9\u6837\u5c31\u5b8c\u6210\u4e86\u73af\u5883\u53d8\u91cf\u7684\u914d\u7f6e\u5de5\u4f5c\u3002<\/p>\n

\u4ee5\u4e0a\u4e09\u79cd\u65b9\u5f0f\u5404\u6709\u7279\u5f81linux \u5b89\u88c5gdb \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>\uff0c\u4f46\u662f\u7597\u6548\u4e5f\u4e0d\u4e00\u6837\u3002\u4e0d\u8fc7\u76f8\u540c\u7684\u662f\uff0c\u5728\u4f7f\u7528\u5b83\u4eec\u8fdb\u884c\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u7684\u65f6\u4faf\u8981\u975e\u5e38\u6ce8\u610f\u547d\u4ee4\u4ee3\u7801\u7684\u6b63\u786e\u6027\uff0c\u7f3a\u4f4d\u4e00\u4e2a\u7b26\u53f7\u5c31\u4f1a\u9020\u6210\u914d\u7f6e\u5931\u8d25\u800c\u672a\u80fd\u8fdb\u884c\u6b63\u5e38\u7684\u7a0b\u5e8f\u5f00\u53d1\uff0c\u8fd9\u70b9\u987b\u8981\u4f60\u4eec\u8c28\u8bb0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u719f\u6089\u8ba1\u7b97\u673a\u7684\u4eba\u90fd\u77e5\u9053\uff0c\u5728\u7a0b\u5e8f\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u5bf9\u8ba1\u7b97\u673a\u8fdb\u884c\u73af\u5883\u53d8\u91cf\u7684\u914d\u7f6e\u548c\u66f4\u6539\u64cd\u4f5c\uff0c\u5426\u5219\u8ba1\u7b97\u673a\u5c31\u65e0\u6cd5\u6b63\u5e38\u8fdb\u884c\u7a0b\u5e8f\u5f00\u53d1\u3002\u6bd4\u5982\uff0c\u5f53\u6211\u4eec\u4f7f\u7528Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u8ba1\u7b97\u673a\u53bb\u8fdb\u884c\u7a0b\u5e8f\u7684\u5f00\u53d1\uff0c\u90a3\u8981\u5982\u4f55\u8fdb\u884c\u73af\u5883\u53d8\u91cf\u7684\u914d\u7f6e\u548c\u66f4\u6539\u5462\uff1f\u65b9\u6cd53\uff1a\u5728shell\u4e0b\u8bbe\u7f6e\u53d8\u91cf<\/p>\n","protected":false},"author":1,"featured_media":294104,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[4011],"class_list":["post-294103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-jhjblsz"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294103","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=294103"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294103\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294104"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}