{"id":1617,"date":"2022-11-20T10:20:12","date_gmt":"2022-11-20T02:20:12","guid":{"rendered":"https:\/\/qaqaq.top\/?p=1617"},"modified":"2022-12-31T12:40:53","modified_gmt":"2022-12-31T04:40:53","slug":"linux-%e8%bd%af%e4%bb%b6%e5%ae%89%e8%a3%85%e5%88%b0%e5%93%aa%e9%87%8c%e5%90%88%e9%80%82%ef%bc%8c%e7%9b%ae%e5%bd%95%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/qaqaq.top\/?p=1617","title":{"rendered":"Linux \u8f6f\u4ef6\u5b89\u88c5\u5230\u54ea\u91cc\u5408\u9002\uff0c\u76ee\u5f55\u8be6\u89e3"},"content":{"rendered":"\n<p>Linux \u7684\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55\u662f\u4e5f\u662f\u6709\u8bb2\u7a76\u7684\uff0c\u7406\u89e3\u8fd9\u4e00\u70b9\uff0c\u5728\u5bf9\u7cfb\u7edf\u7ba1\u7406\u662f\u6709\u76ca\u7684<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\uff1a\u7cfb\u7edf\u7ea7\u7684\u76ee\u5f55\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aC:\/Windows\/\n\n\/usr\/lib\u7406\u89e3\u4e3aC:\/Windows\/System32\n\n\/usr\/local\uff1a\u7528\u6237\u7ea7\u7684\u7a0b\u5e8f\u76ee\u5f55\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aC:\/Progrem Files\/\u3002\u7528\u6237\u81ea\u5df1\u7f16\u8bd1\u7684\u8f6f\u4ef6\u9ed8\u8ba4\u4f1a\u5b89\u88c5\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0b\n\n\/opt\uff1a\u7528\u6237\u7ea7\u7684\u7a0b\u5e8f\u76ee\u5f55\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aD:\/Software\uff0copt\u6709\u53ef\u9009\u7684\u610f\u601d\uff0c\u8fd9\u91cc\u53ef\u4ee5\u7528\u4e8e\u653e\u7f6e\u7b2c\u4e09\u65b9\u5927\u578b\u8f6f\u4ef6\uff08\u6216\u6e38\u620f\uff09\uff0c\u5f53\u4f60\u4e0d\u9700\u8981\u65f6\uff0c\u76f4\u63a5rm -rf\u6389\u5373\u53ef\u3002\u5728\u786c\u76d8\u5bb9\u91cf\u4e0d\u591f\u65f6\uff0c\u4e5f\u53ef\u5c06\/opt\u5355\u72ec\u6302\u8f7d\u5230\u5176\u4ed6\u78c1\u76d8\u4e0a\u4f7f\u7528\u3002\n\n\u6e90\u7801\u653e\u54ea\u91cc\uff1f\n\n\/usr\/src\uff1a\u7cfb\u7edf\u7ea7\u7684\u6e90\u7801\u76ee\u5f55\n\n\/usr\/local\/src\uff1a\u7528\u6237\u7ea7\u7684\u6e90\u7801\u76ee\u5f55<\/code><\/pre>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u7ffb\u8bd1&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n\n\n\n<p>\/opt<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Here\u2019s where optional stuff is put. Trying out the latest Firefox beta? Install it to \/opt where you can delete it without affecting other settings.&nbsp;Programs in here usually live inside a single folder whick contains all of their data, libraries, etc.<br>\u8fd9\u91cc\u4e3b\u8981\u5b58\u653e\u90a3\u4e9b\u53ef\u9009\u7684\u7a0b\u5e8f\u3002\u4f60\u60f3\u5c1d\u8bd5\u6700\u65b0\u7684firefox\u6d4b\u8bd5\u7248\u5417?\u90a3\u5c31\u88c5\u5230\/opt\u76ee\u5f55\u4e0b\u5427\uff0c\u8fd9\u6837\uff0c\u5f53\u4f60\u5c1d\u8bd5\u5b8c\uff0c\u60f3\u5220\u6389firefox\u7684\u65f6\u5019\uff0c\u4f60\u5c31\u53ef \u4ee5\u76f4\u63a5\u5220\u9664\u5b83\uff0c\u800c\u4e0d\u5f71\u54cd\u7cfb\u7edf\u5176\u4ed6\u4efb\u4f55\u8bbe\u7f6e\u3002<strong>\u5b89\u88c5\u5230\/opt\u76ee\u5f55\u4e0b\u7684\u7a0b\u5e8f\uff0c\u5b83\u6240\u6709\u7684\u6570\u636e\u3001\u5e93\u6587\u4ef6\u7b49\u7b49\u90fd\u662f\u653e\u5728\u540c\u4e2a\u76ee\u5f55\u4e0b\u9762\u3002<\/strong><br>\u4e3e\u4e2a\u4f8b\u5b50\uff1a\u521a\u624d\u88c5\u7684\u6d4b\u8bd5\u7248firefox\uff0c\u5c31\u53ef\u4ee5\u88c5\u5230\/opt\/firefox_beta\u76ee\u5f55\u4e0b\uff0c\/opt\/firefox_beta\u76ee\u5f55\u4e0b\u9762\u5c31\u5305\u542b\u4e86\u8fd0 \u884cfirefox\u6240\u9700\u8981\u7684\u6240\u6709\u6587\u4ef6\u3001\u5e93\u3001\u6570\u636e\u7b49\u7b49\u3002\u8981\u5220\u9664firefox\u7684\u65f6\u5019\uff0c\u4f60\u53ea\u9700\u5220\u9664\/opt\/firefox_beta\u76ee\u5f55\u5373\u53ef\uff0c\u975e\u5e38\u7b80\u5355\u3002<\/p><\/blockquote>\n\n\n\n<p>\/usr\/local<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>This is where most&nbsp;manually installed(ie. outside of your package manager) software goes.&nbsp;It has the same structure as \/usr. It is a good idea to leave \/usr to your package manager and put any custom scripts and things into \/usr\/local, since nothing important normally lives in \/usr\/local.<strong> \u8fd9\u91cc\u4e3b\u8981\u5b58\u653e\u90a3\u4e9b\u624b\u52a8\u5b89\u88c5\u7684\u8f6f\u4ef6\uff0c\u5373\u4e0d\u662f\u901a\u8fc7\u201c\u65b0\u7acb\u5f97\u201d\u6216apt-get\u5b89\u88c5\u7684\u8f6f\u4ef6\u3002<\/strong>\u5b83\u548c\/usr\u76ee\u5f55\u5177\u6709\u76f8\u7c7b\u4f3c\u7684\u76ee\u5f55\u7ed3\u6784\u3002\u8ba9\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u6765\u7ba1\u7406\/usr\u76ee\u5f55\uff0c\u800c\u628a\u81ea\u5b9a\u4e49\u7684\u811a\u672c(scripts)\u653e\u5230\/usr\/local\u76ee\u5f55\u4e0b\u9762\uff0c\u6211\u60f3\u8fd9\u5e94\u8be5\u662f\u4e2a\u4e0d\u9519\u7684\u4e3b\u610f\u3002<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u7684\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55\u662f\u4e5f\u662f\u6709\u8bb2\u7a76\u7684\uff0c\u7406\u89e3\u8fd9\u4e00\u70b9\uff0c\u5728\u5bf9\u7cfb\u7edf\u7ba1\u7406\u662f\u6709\u76ca\u7684 &#8212;&#8212;&#038;#8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98],"tags":[51],"class_list":["post-1617","post","type-post","status-publish","format-standard","hentry","category-linux-","tag-linux"],"_links":{"self":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/1617"}],"collection":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1617"}],"version-history":[{"count":1,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/1617\/revisions"}],"predecessor-version":[{"id":1618,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/1617\/revisions\/1618"}],"wp:attachment":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}