{"id":273787,"date":"2023-05-31T04:06:11","date_gmt":"2023-05-30T20:06:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/pkzxcxdczljz.html"},"modified":"2023-05-31T04:06:11","modified_gmt":"2023-05-30T20:06:11","slug":"pkzxcxdczljz","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/pkzxcxdczljz.html","title":{"rendered":"PATH:\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u67e5\u627e\u8def\u5f84\u67e5\u770b"},"content":{"rendered":"

linux\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u65b9\u5f0f\u603b\u7ed3\uff08PATH\uff0fLD_LIBRARY_PATH\uff09<\/p>\n

PATH:\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u67e5\u627e\u8def\u5f84<\/p>\n

\u67e5\u770b\u5f53\u524d\u73af\u5883\u53d8\u91cf:<\/p>\n

echo$PATH<\/p>\n

\u8bbe\u7f6e:<\/p>\n

\u65b9\u5f0f\u4e00\uff1aexportPATH=PATH:\/XXX\u5e76\u4e14\u767b\u8f7d\u540e\u5c31\u5931\u6548<\/p>\n

\u6280\u5de7\u4e8c\uff1a\u66f4\u6539~\/.bashrc\u6216~\/.bash_profile\u6216\u7cfb\u7edf<\/a>\u7ea7\u522b\u7684\/etc\/profile<\/p>\n

1.\u5728\u5176\u4e2d\u6dfb\u52a0\u8bf8\u5982exportPATH=\/opt\/ActivePython-2.7\/bin:$PATH<\/p>\n

2.source.bashrc(Source\u547d\u4ee4<\/a>\u5408\u79f0\u4e3a\u201c\u70b9\u547d\u4ee4\u201d\uff0c\u4e5f\u5c31\u662f\u4e00\u4e2a\u70b9\u7b26\u53f7\uff08.\uff09\u3002<\/p>\n

source\u547d\u4ee4\u4e00\u822c\u7528\u4e8e\u91cd\u65b0\u6267\u884c\u521a\u66f4\u6539\u7684\u521d\u59cb\u5316\u6587\u4ef6\uff0c\u4f7f\u4e4b\u7acb\u523b\u751f\u6548\uff0c\u800c\u6bcb\u987b\u6ce8\u9500\u5e76\u91cd\u65b0\u767b\u9646)<\/p>\n

linux \u4fee\u6539\u73af\u5883\u53d8\u91cf\u7acb\u5373\u751f\u6548_linux \u4fee\u6539\u73af\u5883\u53d8\u91cf\u7acb\u5373\u751f\u6548_linux\u4fee\u6539hosts\u600e\u4e48\u751f\u6548<\/p>\n

LD_LIBRARY_PATH:\u52a8\u6001\u5e93\u7684\u67e5\u627e\u8def\u5f84<\/p>\n

\u8bbe\u7f6e\uff1a<\/p>\n

\u65b9\u5f0f\u4e00\uff1aexportLD_LIBRARY_PATH=LD_LIBRARY_PATH:\/XXX\u5e76\u4e14\u767b\u8f7d\u540e\u5c31\u5931\u6548<\/p>\n

\u6280\u5de7\u4e8c\uff1a\u66f4\u6539~\/.bashrc\u6216~\/.bash_profile\u6216\u7cfb\u7edf\u7ea7\u522b\u7684\/etc\/profile<\/p>\n

1.\u5728\u5176\u4e2d\u6dfb\u52a0\u8bf8\u5982exportPATH=\/opt\/ActiveP\/lib:$LD_LIBRARY_PATH<\/p>\n

2.source.bashrc(Source\u547d\u4ee4\u5408\u79f0\u4e3a\u201c\u70b9\u547d\u4ee4\u201dlinux \u4fee\u6539\u73af\u5883\u53d8\u91cf\u7acb\u5373\u751f\u6548<\/strong>\uff0c\u4e5f\u5c31\u662f\u4e00\u4e2a\u70b9\u7b26\u53f7\uff08.\uff09\u3002<\/p>\n

source\u547d\u4ee4\u4e00\u822c\u7528\u4e8e\u91cd\u65b0\u6267\u884c\u521a\u66f4\u6539\u7684\u521d\u59cb\u5316\u6587\u4ef6linux \u4fee\u6539\u73af\u5883\u53d8\u91cf\u7acb\u5373\u751f\u6548<\/strong>\uff0c\u4f7f\u4e4b\u7acb\u523b\u751f\u6548\uff0c\u800c\u6bcb\u987b\u6ce8\u9500\u5e76\u91cd\u65b0\u767b\u9646)<\/p>\n

\u65b9\u5f0f\u4e09\uff1a\u8fd9\u4e2a\u6ca1\u6709\u66f4\u6539LD_LIBRARY_PATH\u5e76\u4e14\u7597\u6548\u662f\u4e00\u6837\u7684\u5b9e\u73b0\u52a8\u6001\u5e93\u7684\u67e5\u627elinux\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u57f9\u8bad\uff0c<\/p>\n

1.\/etc\/ld.so.conf\u4e0b\u8fb9\u52a0\u4e00\u884c\/usr\/local\/mysql\/lib<\/p>\n

2.\u4fdd\u5b58\u4e4b\u540eldconfig\u4e00\u4e0b\uff08ldconfig\u547d\u4ee4\u7684\u7528\u9014,\u4e3b\u8981\u662f\u5728\u9ed8\u8ba4\u641c\u6551\u76ee\u5f55(\/lib\u548c\/usr\/lib)\u4ee5\u53ca\u52a8\u6001\u5e93\u914d\u7f6e\u6587\u4ef6\/etc\/ld.so.conf\u5185\u6240\u5217\u7684\u76ee\u5f55\u4e0b,\u641c\u7d22\u51fa\u53ef\u5171\u4eab\u7684\u52a8\u6001\u94fe\u63a5\u5e93(\u683c\u5f0f\u5982\u524d\u4ecb\u7ecd,lib*.so*),\u4ece\u800c\u521b\u5efa\u51fa\u52a8\u6001\u653e\u5165\u7a0b\u5e8f(ld.so)\u6240\u9700\u7684\u8054\u63a5\u548c\u7f13\u5b58\u6587\u4ef6.\u7f13\u5b58\u6587\u4ef6\u9ed8\u8ba4\u4e3a\/etc\/ld.so.cache,\u6b64\u6587\u4ef6\u4fdd\u5b58\u5df2\u6392\u597d\u5e8f\u7684\u52a8\u6001\u94fe\u63a5\u5e93\u540d\u5b50\u5217\u8868.\uff09<\/p>\n

\u65b9\u5f0f\u4e09\u8bbe\u7f6e\u7a0d\u4e3a\u9ebb\u70e6\uff0c\u7528\u5904\u662f\u6bd4\u8f83\u4e0d\u53d7\u7528\u6237\u7684\u9650\u5236\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

linux\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u65b9\u6cd5\u603b\u7ed3\uff08PATH\uff0fLD_LIBRARY_PATH\uff09\u67e5\u770b\u5f53\u524d\u73af\u5883\u53d8\u91cf:\u65b9\u6cd5\u4e8c\uff1a\u4fee\u6539~source\u547d\u4ee4\u901a\u5e38\u7528\u4e8e\u91cd\u65b0\u6267\u884c\u521a\u4fee\u6539\u7684\u521d\u59cb\u5316\u6587\u4ef6\uff0c\u4f7f\u4e4b\u7acb\u5373\u751f\u6548\uff0c\u800c\u4e0d\u5fc5\u6ce8\u9500\u5e76\u91cd\u65b0\u767b\u5f55)source\u547d\u4ee4\u901a\u5e38\u7528\u4e8e\u91cd\u65b0\u6267\u884c\u521a\u4fee\u6539\u7684\u521d\u59cb\u5316\u6587\u4ef6\uff0c\u4f7f\u4e4b\u7acb\u5373\u751f\u6548\uff0c\u800c\u4e0d\u5fc5\u6ce8\u9500\u5e76\u91cd\u65b0\u767b\u5f55)\u65b9\u6cd5\u4e09\uff1a\u8fd9\u4e2a\u6ca1\u6709\u4fee\u6539LD_LIBRARY_PATH\u4f46\u662f\u6548\u679c\u662f\u4e00\u6837\u7684\u5b9e\u73b0\u52a8\u6001\u5e93\u7684\u67e5\u627e\uff0c\u547d\u4ee4\u7684\u7528\u9014,\u4e3b\u8981\u662f\u5728\u9ed8\u8ba4\u641c\u5bfb\u76ee\u5f55(\/lib\u548c\/usr\/lib)\u4ee5\u53ca\u52a8\u6001\u5e93\u914d\u7f6e\u6587\u4ef6\/etc\/ld.<\/p>\n","protected":false},"author":1,"featured_media":273788,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-273787","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/273787","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=273787"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/273787\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/273788"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=273787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=273787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=273787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}