{"id":1293,"date":"2026-06-28T19:10:56","date_gmt":"2026-06-28T11:10:56","guid":{"rendered":"https:\/\/www.loongdi.net\/blog\/?p=1293"},"modified":"2026-06-28T19:10:56","modified_gmt":"2026-06-28T11:10:56","slug":"%e5%a6%82%e4%bd%95%e9%ab%98%e6%95%88%e8%bf%90%e7%94%a8%e5%b7%a5%e4%bd%9c%e7%ab%99%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%9b%e8%a1%8c%e4%b8%93%e4%b8%9a%e8%ae%a1%e7%ae%97%e9%9c%80%e6%b1%82%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.loongdi.net\/blog\/1293.html","title":{"rendered":"\u5982\u4f55\u9ad8\u6548\u8fd0\u7528\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u8fdb\u884c\u4e13\u4e1a\u8ba1\u7b97\u9700\u6c42\uff1f"},"content":{"rendered":"<p><h2>\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u7b80\u4ecb\u4e0e\u64cd\u4f5c\u6307\u5357<\/h2>\n<\/p>\n<p>\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u662f\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u8ba1\u7b97\u673a\u7cfb\u7edf\uff0c\u4e13\u4e3a\u6ee1\u8db3\u4e13\u4e1a\u5de5\u4f5c\u7ad9\u7684\u9ad8\u8d1f\u8f7d\u8ba1\u7b97\u9700\u6c42\u800c\u8bbe\u8ba1\u3002\u672c\u6587\u5c06\u7b80\u8981\u4ecb\u7ecd\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u7684\u6280\u672f\u7279\u70b9\uff0c\u5e76\u8be6\u7ec6\u9610\u8ff0\u5176\u64cd\u4f5c\u6b65\u9aa4\u3001\u547d\u4ee4\u793a\u4f8b\u53ca\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.loongdi.net\/blog\/wp-content\/uploads\/2026\/03\/3i5XpDP0.jpg\" alt=\"\u5982\u4f55\u9ad8\u6548\u8fd0\u7528\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u8fdb\u884c\u4e13\u4e1a\u8ba1\u7b97\u9700\u6c42\uff1f\" title=\"\u5982\u4f55\u9ad8\u6548\u8fd0\u7528\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u8fdb\u884c\u4e13\u4e1a\u8ba1\u7b97\u9700\u6c42\uff1f\"><\/p>\n<p><h3>\u4e00\u3001\u6280\u672f\u7279\u70b9<\/h3>\n<\/p>\n<p>\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u901a\u5e38\u5177\u5907\u4ee5\u4e0b\u6280\u672f\u7279\u70b9\uff1a<\/p>\n<ul>\n<li>\u5f3a\u5927\u7684\u8ba1\u7b97\u80fd\u529b<\/li>\n<li>\u9ad8\u7a33\u5b9a\u6027<\/li>\n<li>\u5927\u5bb9\u91cf\u5b58\u50a8<\/li>\n<li>\u4e30\u5bcc\u7684\u6269\u5c55\u6027<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u64cd\u4f5c\u6b65\u9aa4<\/h3>\n<\/p>\n<p>\u4ee5\u4e0b\u662f\u5728\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u4e0a\u6267\u884c\u57fa\u672c\u64cd\u4f5c\u6b65\u9aa4\u7684\u6307\u5357\u3002<\/p>\n<p><h4>1. \u767b\u5f55\u670d\u52a1\u5668<\/h4>\n<\/p>\n<ol>\n<li>\u901a\u8fc7\u7ec8\u7aef\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002<\/li>\n<li>\u4f7f\u7528\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5f55\u3002<\/li>\n<\/ol>\n<p><pre><code>ssh username@server_ip<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6<\/h4>\n<\/p>\n<p>\u786e\u4fdd\u7cfb\u7edf\u8f6f\u4ef6\u662f\u6700\u65b0\u7684\uff0c\u4ee5\u4fbf\u83b7\u5f97\u5b89\u5168\u66f4\u65b0\u548c\u6027\u80fd\u6539\u8fdb\u3002<\/p>\n<p><pre><code>sudo apt update<\/p>\r\n<p>sudo apt upgrade<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5b89\u88c5\u65b0\u8f6f\u4ef6<\/h4>\n<\/p>\n<p>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u65b0\u8f6f\u4ef6\u3002<\/p>\n<p><pre><code>sudo apt install package_name<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u7ba1\u7406\u6587\u4ef6\u7cfb\u7edf<\/h4>\n<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u6587\u4ef6\u7ba1\u7406\u547d\u4ee4\uff1a<\/p>\n<ul>\n<li><strong>ls<\/strong>\uff1a\u5217\u51fa\u76ee\u5f55\u5185\u5bb9\u3002<\/li>\n<li><strong>cd<\/strong>\uff1a\u66f4\u6539\u76ee\u5f55\u3002<\/li>\n<li><strong>cp<\/strong>\uff1a\u590d\u5236\u6587\u4ef6\u6216\u76ee\u5f55\u3002<\/li>\n<li><strong>mv<\/strong>\uff1a\u79fb\u52a8\u6216\u91cd\u547d\u540d\u6587\u4ef6\u6216\u76ee\u5f55\u3002<\/li>\n<li><strong>rm<\/strong>\uff1a\u5220\u9664\u6587\u4ef6\u6216\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p><pre><code>ls<\/p>\r\n<p>cd \/path\/to\/directory<\/p>\r\n<p>cp source destination<\/p>\r\n<p>mv source destination<\/p>\r\n<p>rm file_or_directory<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u7ba1\u7406\u670d\u52a1<\/h4>\n<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u670d\u52a1\u7ba1\u7406\u547d\u4ee4\uff1a<\/p>\n<ul>\n<li><strong>systemctl<\/strong>\uff1a\u7528\u4e8e\u7ba1\u7406\u7cfb\u7edf\u7684\u5404\u79cd\u5355\u5143\uff0c\u5982\u670d\u52a1\u3001socket\u3001\u8bbe\u5907\u7b49\u3002<\/li>\n<li><strong>service<\/strong>\uff1a\u7528\u4e8e\u7ba1\u7406\u7cfb\u7edf\u670d\u52a1\u3002<\/li>\n<\/ul>\n<p><pre><code>systemctl start service_name<\/p>\r\n<p>systemctl stop service_name<\/p>\r\n<p>systemctl restart service_name<\/p>\r\n<p>systemctl status service_name<\/p>\r\n<p>service service_name start<\/p>\r\n<p>service service_name stop<\/p>\r\n<p>service service_name restart<\/p>\r\n<p>service service_name status<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u547d\u4ee4\u793a\u4f8b\u53ca\u89e3\u91ca<\/h3>\n<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u547d\u4ee4\u7684\u793a\u4f8b\u53ca\u89e3\u91ca\u3002<\/p>\n<p><h4>1. \u67e5\u770bCPU\u4f7f\u7528\u60c5\u51b5<\/h4>\n<\/p>\n<p><pre><code>top<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u8be5\u547d\u4ee4\u663e\u793a\u5f53\u524d\u7cfb\u7edf\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\uff0c\u5305\u62ecCPU\u3001\u5185\u5b58\u3001\u78c1\u76d8\u7b49\u3002<\/p>\n<p><h4>2. \u67e5\u770b\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5<\/h4>\n<\/p>\n<p><pre><code>df -h<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u8be5\u547d\u4ee4\u4ee5\u53ef\u8bfb\u7684\u683c\u5f0f\u663e\u793a\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5\u3002<\/p>\n<p><h4>3. \u67e5\u627e\u6587\u4ef6<\/h4>\n<\/p>\n<p><pre><code>find \/path\/to\/directory -name \"filename\"<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u8be5\u547d\u4ee4\u5728\u6307\u5b9a\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u4e2d\u67e5\u627e\u6587\u4ef6\u3002<\/p>\n<p><h3>\u56db\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<ul>\n<li>\u786e\u4fdd\u670d\u52a1\u5668\u5b89\u5168\uff0c\u5b9a\u671f\u66f4\u65b0\u7cfb\u7edf\u548c\u8f6f\u4ef6\u3002<\/li>\n<li>\u5907\u4efd\u91cd\u8981\u6570\u636e\uff0c\u4ee5\u9632\u6570\u636e\u4e22\u5931\u3002<\/li>\n<li>\u4e86\u89e3\u548c\u9075\u5b88\u670d\u52a1\u5668\u786c\u4ef6\u548c\u8f6f\u4ef6\u7684\u8bb8\u53ef\u534f\u8bae\u3002<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001\u5b9e\u7528\u6280\u5de7<\/h3>\n<\/p>\n<ul>\n<li>\u4f7f\u7528\u522b\u540d\u63d0\u9ad8\u547d\u4ee4\u6267\u884c\u6548\u7387\u3002<\/li>\n<li>\u5b66\u4e60\u5e76\u4f7f\u7528\u81ea\u52a8\u5316\u811a\u672c\u7b80\u5316\u91cd\u590d\u6027\u4efb\u52a1\u3002<\/li>\n<li>\u719f\u6089\u5e38\u7528\u5feb\u6377\u952e\uff0c\u63d0\u9ad8\u64cd\u4f5c\u6548\u7387\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u7b80\u4ecb\u4e0e\u64cd\u4f5c\u6307\u5357 \u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u662f\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u8ba1\u7b97\u673a\u7cfb\u7edf\uff0c\u4e13\u4e3a\u6ee1\u8db3\u4e13\u4e1a\u5de5\u4f5c\u7ad9\u7684\u9ad8\u8d1f\u8f7d\u8ba1\u7b97\u9700\u6c42\u800c\u8bbe\u8ba1\u3002\u672c\u6587\u5c06\u7b80\u8981\u4ecb\u7ecd\u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u7684\u6280\u672f\u7279\u70b9\uff0c\u5e76\u8be6\u7ec6\u9610\u8ff0\u5176\u64cd\u4f5c\u6b65\u9aa4\u3001\u547d\u4ee4\u793a\u4f8b\u53ca\u6ce8\u610f\u4e8b\u9879\u3002 \u4e00\u3001\u6280\u672f\u7279\u70b9 \u5de5\u4f5c\u7ad9\u670d\u52a1\u5668\u901a\u5e38\u5177\u5907\u4ee5\u4e0b\u6280\u672f\u7279\u70b9\uff1a &#8230;<\/p>\n","protected":false},"author":1,"featured_media":49,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"topic":[],"class_list":["post-1293","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hw"],"_links":{"self":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/comments?post=1293"}],"version-history":[{"count":1,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1293\/revisions"}],"predecessor-version":[{"id":1294,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1293\/revisions\/1294"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/media\/49"}],"wp:attachment":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/media?parent=1293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/categories?post=1293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/tags?post=1293"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/topic?post=1293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}