{"id":90081,"date":"2026-08-04T17:56:53","date_gmt":"2026-08-04T09:56:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/90081.html"},"modified":"2026-08-04T17:56:53","modified_gmt":"2026-08-04T09:56:53","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%a3%81%e7%9b%98%e7%88%86%e6%bb%a1%e5%88%ab%e5%85%88%e4%b9%b1%e5%88%a0%ef%bc%9a%e4%bb%8e-df%e3%80%81du%e3%80%81journalctl-%e5%88%b0-docker-%e6%97%a5%e5%bf%97%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/90081.html","title":{"rendered":"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804095650-6a71b762790a4.png\" alt=\"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u544a\u8b66\" \/><\/p>\n<p>\u670d\u52a1\u5668\u6700\u6015\u7684\u4e00\u7c7b\u6545\u969c&#xff0c;\u4e0d\u662f CPU \u9ad8&#xff0c;\u4e5f\u4e0d\u662f\u5185\u5b58\u6296\u4e00\u4e0b&#xff0c;\u800c\u662f\u78c1\u76d8\u76f4\u63a5 100%\u3002\u78c1\u76d8\u4e00\u6ee1&#xff0c;Nginx \u53ef\u80fd\u5199\u4e0d\u4e86\u4e34\u65f6\u6587\u4ef6&#xff0c;MySQL \u53ef\u80fd\u65e0\u6cd5\u5199 binlog&#xff0c;Redis \u53ef\u80fd\u6301\u4e45\u5316\u5931\u8d25&#xff0c;Docker \u5bb9\u5668\u65e5\u5fd7\u53ef\u80fd\u7ee7\u7eed\u81a8\u80c0&#xff0c;\u8fde SSH \u767b\u5f55\u540e\u7684\u547d\u4ee4\u8865\u5168\u90fd\u53ef\u80fd\u53d8\u6162\u3002<\/p>\n<p>\u5f88\u591a\u65b0\u624b\u770b\u5230\u78c1\u76d8\u7206\u6ee1&#xff0c;\u7b2c\u4e00\u53cd\u5e94\u662f\u968f\u624b rm -rf\u3002\u8fd9\u5f88\u5371\u9669\u3002\u751f\u4ea7\u673a\u5668\u4e0a\u5220\u9519\u76ee\u5f55&#xff0c;\u8f7b\u5219\u4e22\u65e5\u5fd7\u3001\u4e22\u7f13\u5b58&#xff0c;\u91cd\u5219\u5220\u6389\u6570\u636e\u5e93\u6587\u4ef6\u3001\u4e0a\u4f20\u9644\u4ef6\u3001\u8bc1\u4e66\u3001\u914d\u7f6e&#xff0c;\u6545\u969c\u76f4\u63a5\u5347\u7ea7\u3002\u6b63\u786e\u505a\u6cd5\u662f\u5148\u4fdd\u7559\u73b0\u573a&#xff0c;\u518d\u5b9a\u4f4d\u662f\u54ea\u4e00\u7c7b\u6587\u4ef6\u5360\u7a7a\u95f4&#xff0c;\u6700\u540e\u6309\u98ce\u9669\u7ea7\u522b\u6e05\u7406\u6216\u6269\u5bb9\u3002<\/p>\n<p>\u672c\u6587\u6309\u4e00\u6b21\u771f\u5b9e\u751f\u4ea7\u6392\u969c\u7684\u987a\u5e8f\u5199&#xff1a;\u5148\u5224\u65ad\u54ea\u4e2a\u5206\u533a\u6ee1&#xff0c;\u518d\u5b9a\u4f4d\u5927\u76ee\u5f55&#xff0c;\u518d\u533a\u5206\u65e5\u5fd7\u3001Docker\u3001\u6570\u636e\u5e93\u3001\u4e0a\u4f20\u6587\u4ef6\u3001\u7cfb\u7edf\u5305\u7f13\u5b58&#xff0c;\u6700\u540e\u7ed9\u51fa\u6e05\u7406\u3001\u6269\u5bb9\u3001\u5feb\u7167\u548c\u9884\u9632\u65b9\u6848\u3002\u9002\u7528\u4e8e\u817e\u8baf\u4e91\u3001\u963f\u91cc\u4e91\u3001AWS\u3001Azure\u3001Oracle Cloud \u548c\u666e\u901a VPS \u4e0a\u7684 Linux \u670d\u52a1\u5668\u3002<\/p>\n<p>\u53c2\u8003\u6765\u6e90&#xff1a;<\/p>\n<ul>\n<li>Docker \u5b98\u65b9\u65e5\u5fd7\u9a71\u52a8\u6587\u6863&#xff1a;https:\/\/docs.docker.com\/engine\/logging\/configure\/<\/li>\n<li>Docker json-file \u65e5\u5fd7\u9a71\u52a8\u6587\u6863&#xff1a;https:\/\/docs.docker.com\/engine\/logging\/drivers\/json-file\/<\/li>\n<li>systemd journalctl \u5b98\u65b9\u624b\u518c&#xff1a;https:\/\/www.freedesktop.org\/software\/systemd\/man\/journalctl.html<\/li>\n<li>\u817e\u8baf\u4e91\u4e91\u786c\u76d8\u5feb\u7167\u6587\u6863&#xff1a;https:\/\/www.tencentcloud.com\/document\/product\/362\/31638<\/li>\n<\/ul>\n<h3>1. \u5148\u5224\u65ad&#xff1a;\u5230\u5e95\u54ea\u4e2a\u5206\u533a\u6ee1\u4e86<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804095650-6a71b762d98de.png\" alt=\"\u6392\u67e5\u603b\u6d41\u7a0b\" \/><\/p>\n<p>\u7b2c\u4e00\u6761\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p>\u91cd\u70b9\u770b\u8fd9\u51e0\u5217&#xff1a;<\/p>\n<p>Filesystem      Size  Used Avail Use% Mounted on<br \/>\n\/dev\/vda1        50G   49G  300M  100% \/<br \/>\n\/dev\/vdb1       200G  160G   40G   80% \/data<\/p>\n<p>\u5982\u679c \/ \u6ee1\u4e86&#xff0c;\u7cfb\u7edf\u65e5\u5fd7\u3001Docker \u9ed8\u8ba4\u76ee\u5f55\u3001\u5305\u7f13\u5b58\u3001\u4e34\u65f6\u6587\u4ef6\u90fd\u53ef\u80fd\u662f\u539f\u56e0\u3002 \u5982\u679c \/data \u6ee1\u4e86&#xff0c;\u901a\u5e38\u662f\u6570\u636e\u5e93\u3001\u4e0a\u4f20\u6587\u4ef6\u3001\u5bf9\u8c61\u540c\u6b65\u76ee\u5f55\u3001\u5907\u4efd\u5305\u6216\u4e1a\u52a1\u65e5\u5fd7\u3002 \u5982\u679c inode \u6ee1\u4e86&#xff0c;\u660e\u660e\u8fd8\u6709\u5bb9\u91cf\u4e5f\u4f1a\u521b\u5efa\u4e0d\u4e86\u6587\u4ef6\u3002<\/p>\n<p>\u68c0\u67e5 inode&#xff1a;<\/p>\n<p><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-ih<\/span><\/p>\n<p>inode \u7206\u6ee1\u5e38\u89c1\u4e8e\u5c0f\u6587\u4ef6\u592a\u591a&#xff0c;\u4f8b\u5982\u4f1a\u8bdd\u6587\u4ef6\u3001\u7f13\u5b58\u788e\u7247\u3001\u90ae\u4ef6\u961f\u5217\u3001\u5c0f\u56fe\u7f29\u7565\u56fe\u3001\u4e34\u65f6\u4efb\u52a1\u8f93\u51fa\u3002<\/p>\n<h3>2. \u7b2c\u4e8c\u6b65&#xff1a;\u4e0d\u8981\u5168\u76d8 find&#xff0c;\u5148\u7528 du \u5b9a\u4f4d\u5927\u76ee\u5f55<\/h3>\n<p>\u5148\u4ece\u6839\u76ee\u5f55\u5f00\u59cb&#xff0c;\u53ea\u770b\u4e00\u5c42&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/ <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p>\u53c2\u6570\u89e3\u91ca&#xff1a;<\/p>\n<ul>\n<li>-x&#xff1a;\u4e0d\u8de8\u6587\u4ef6\u7cfb\u7edf&#xff0c;\u907f\u514d\u626b\u5230\u6302\u8f7d\u76d8\u3002<\/li>\n<li>-h&#xff1a;\u4eba\u7c7b\u53ef\u8bfb\u3002<\/li>\n<li>-d1&#xff1a;\u53ea\u770b\u4e00\u5c42\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u53d1\u73b0 \/var \u5f88\u5927&#xff0c;\u518d\u7ee7\u7eed&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/var <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/var\/log <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p>\u5982\u679c\u53d1\u73b0 \/data \u5f88\u5927&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/data <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804095651-6a71b76328236.png\" alt=\"\u5927\u76ee\u5f55\u5b9a\u4f4d\" \/><\/p>\n<p>\u6392\u969c\u65f6\u4e0d\u8981\u4e00\u4e0a\u6765\u5c31\u6267\u884c\u8fd9\u79cd\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">find<\/span> \/ <span class=\"token parameter variable\">-type<\/span> f <span class=\"token parameter variable\">-size<\/span> &#043;1G<\/p>\n<p>\u5b83\u4e0d\u662f\u4e0d\u80fd\u7528&#xff0c;\u800c\u662f\u53ef\u80fd\u5f88\u6162&#xff0c;\u8fd8\u4f1a\u626b\u5230\u6302\u8f7d\u76d8\u3001\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\u548c\u5927\u91cf\u65e0\u5173\u76ee\u5f55\u3002\u5148\u7528 du -xhd1 \u628a\u8303\u56f4\u7f29\u5c0f&#xff0c;\u518d\u7528 find \u7cbe\u67e5\u66f4\u7a33\u3002<\/p>\n<h3>3. \u7b2c\u4e09\u6b65&#xff1a;\u5e38\u89c1\u5143\u51f6\u4e00&#xff0c;systemd journal \u65e5\u5fd7<\/h3>\n<p>systemd \u7684 journalctl \u7528\u6765\u67e5\u770b systemd-journald \u6536\u96c6\u7684\u65e5\u5fd7\u3002\u5b98\u65b9\u624b\u518c\u8bf4\u660e&#xff0c;journalctl \u4f1a\u6253\u5370 systemd journal \u4e2d\u4fdd\u5b58\u7684\u65e5\u5fd7\u6761\u76ee\u3002\u5f88\u591a\u670d\u52a1\u5668\u5982\u679c\u6ca1\u6709\u9650\u5236\u65e5\u5fd7\u5927\u5c0f&#xff0c;\u957f\u671f\u8fd0\u884c\u540e journal \u53ef\u80fd\u5360\u7528\u6570 GB \u751a\u81f3\u66f4\u591a\u3002<\/p>\n<p>\u67e5\u770b journal \u5360\u7528&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> journalctl &#8211;disk-usage<\/p>\n<p>\u770b\u6700\u8fd1\u9519\u8bef&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> journalctl <span class=\"token parameter variable\">-p<\/span> err <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">100<\/span> &#8211;no-pager<br \/>\n<span class=\"token function\">sudo<\/span> journalctl <span class=\"token parameter variable\">-u<\/span> nginx <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">100<\/span> &#8211;no-pager<br \/>\n<span class=\"token function\">sudo<\/span> journalctl <span class=\"token parameter variable\">-u<\/span> your-app <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">100<\/span> &#8211;no-pager<\/p>\n<p>\u6e05\u7406\u5230\u6307\u5b9a\u5927\u5c0f&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> journalctl &#8211;vacuum-size<span class=\"token operator\">&#061;<\/span>1G<\/p>\n<p>\u6216\u53ea\u4fdd\u7559\u6700\u8fd1 7 \u5929&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> journalctl &#8211;vacuum-time<span class=\"token operator\">&#061;<\/span>7d<\/p>\n<p>\u6ce8\u610f&#xff1a;\u6e05\u7406\u65e5\u5fd7\u524d\u5148\u786e\u8ba4\u662f\u5426\u9700\u8981\u7559\u8bc1\u3001\u5ba1\u8ba1\u6216\u6392\u969c\u3002\u5982\u679c\u673a\u5668\u521a\u53d1\u751f\u6545\u969c&#xff0c;\u5efa\u8bae\u5148\u5bfc\u51fa\u5173\u952e\u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> journalctl <span class=\"token parameter variable\">-u<\/span> your-app <span class=\"token parameter variable\">&#8211;since<\/span> <span class=\"token string\">&#034;2 hours ago&#034;<\/span> <span class=\"token operator\">&gt;<\/span> app-last-2h.log<\/p>\n<h3>4. \u5e38\u89c1\u5143\u51f6\u4e8c&#xff0c;Docker \u5bb9\u5668\u65e5\u5fd7<\/h3>\n<p>Docker \u5b98\u65b9\u6587\u6863\u8bf4\u660e&#xff0c;\u9ed8\u8ba4 json-file \u65e5\u5fd7\u9a71\u52a8\u4f1a\u628a\u5bb9\u5668\u65e5\u5fd7\u4ee5 JSON \u5f62\u5f0f\u5b58\u50a8\u5728\u5bbf\u4e3b\u673a\u6587\u4ef6\u4e2d&#xff1b;\u5b98\u65b9\u914d\u7f6e\u6587\u6863\u4e5f\u63d0\u9192&#xff0c;\u5982\u679c\u9ed8\u8ba4 json-file \u4e0d\u505a\u65e5\u5fd7\u8f6e\u8f6c&#xff0c;\u4ea7\u751f\u5927\u91cf\u8f93\u51fa\u7684\u5bb9\u5668\u53ef\u80fd\u5bfc\u81f4\u78c1\u76d8\u7a7a\u95f4\u88ab\u5927\u91cf\u5360\u7528\u3002<\/p>\n<p>\u5148\u770b Docker \u5360\u7528&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/var\/lib\/docker <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p>\u67e5\u5bb9\u5668\u65e5\u5fd7\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">find<\/span> \/var\/lib\/docker\/containers <span class=\"token parameter variable\">-name<\/span> <span class=\"token string\">&#039;*-json.log&#039;<\/span> <span class=\"token parameter variable\">-type<\/span> f <span class=\"token parameter variable\">-printf<\/span> <span class=\"token string\">&#039;%s %p\\\\n&#039;<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-20<\/span><\/p>\n<p>\u5982\u679c\u67d0\u4e2a\u65e5\u5fd7\u6587\u4ef6\u975e\u5e38\u5927&#xff0c;\u5148\u786e\u8ba4\u5bb9\u5668\u540d&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> <span class=\"token function\">ps<\/span> &#8211;no-trunc<br \/>\n<span class=\"token function\">docker<\/span> inspect <span class=\"token parameter variable\">&#8211;format<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;{{.Name}} {{.LogPath}}&#039;<\/span> <span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">docker<\/span> <span class=\"token function\">ps<\/span> <span class=\"token parameter variable\">-aq<\/span><span class=\"token variable\">)<\/span><\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804095651-6a71b7636a879.png\" alt=\"Docker\u65e5\u5fd7\u7206\u4ed3\" \/><\/p>\n<p>\u4e34\u65f6\u6e05\u7a7a\u5355\u4e2a\u5bb9\u5668\u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> truncate <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">0<\/span> \/var\/lib\/docker\/containers\/<span class=\"token operator\">&lt;<\/span>container-id<span class=\"token operator\">&gt;<\/span>\/<span class=\"token operator\">&lt;<\/span>container-id<span class=\"token operator\">&gt;<\/span>-json.log<\/p>\n<p>\u957f\u671f\u65b9\u6848\u662f\u914d\u7f6e\u65e5\u5fd7\u8f6e\u8f6c\u3002\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;log-driver&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;json-file&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;log-opts&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;max-size&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;100m&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;max-file&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;3&#034;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4fdd\u5b58\u5230&#xff1a;<\/p>\n<p>\/etc\/docker\/daemon.json<\/p>\n<p>\u7136\u540e\u91cd\u542f Docker&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl restart <span class=\"token function\">docker<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u91cd\u542f Docker \u4f1a\u5f71\u54cd\u5bb9\u5668&#xff0c;\u751f\u4ea7\u73af\u5883\u8981\u786e\u8ba4\u4e1a\u52a1\u7a97\u53e3\u3002<\/p>\n<h3>5. \u5e38\u89c1\u5143\u51f6\u4e09&#xff0c;Nginx \/ \u5e94\u7528\u8bbf\u95ee\u65e5\u5fd7<\/h3>\n<p>\u67e5\u770b Nginx \u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-h<\/span> \/var\/log\/nginx\/* <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">50<\/span> \/var\/log\/nginx\/error.log<\/p>\n<p>\u5982\u679c access.log \u5f88\u5927&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u5220\u6389\u6b63\u5728\u5199\u7684\u6587\u4ef6\u3002\u66f4\u7a33\u7684\u65b9\u5f0f&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> \/var\/log\/nginx\/access.log \/var\/log\/nginx\/access.log.<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%F-%H%M<span class=\"token variable\">)<\/span><\/span><br \/>\n<span class=\"token function\">sudo<\/span> nginx <span class=\"token parameter variable\">-s<\/span> reopen<br \/>\n<span class=\"token function\">gzip<\/span> \/var\/log\/nginx\/access.log.*<\/p>\n<p>\u5982\u679c\u5e94\u7528\u65e5\u5fd7\u5f88\u5927&#xff0c;\u5148\u627e\u65e5\u5fd7\u76ee\u5f55&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/opt <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/var\/www <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">find<\/span> \/opt \/var\/www <span class=\"token parameter variable\">-type<\/span> f <span class=\"token parameter variable\">-name<\/span> <span class=\"token string\">&#039;*.log&#039;<\/span> <span class=\"token parameter variable\">-size<\/span> &#043;100M <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null<\/p>\n<p>\u5bf9\u4e8e Java\u3001Node.js\u3001Python\u3001Go \u670d\u52a1&#xff0c;\u5efa\u8bae\u7528\u65e5\u5fd7\u5207\u5272\u6216\u96c6\u4e2d\u65e5\u5fd7\u7cfb\u7edf&#xff0c;\u4e0d\u8981\u65e0\u9650\u5199\u672c\u5730\u6587\u4ef6\u3002<\/p>\n<h3>6. \u5e38\u89c1\u5143\u51f6\u56db&#xff0c;\u6570\u636e\u5e93\u548c\u5907\u4efd\u5305<\/h3>\n<p>MySQL \u5e38\u89c1\u5927\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>binlog<\/li>\n<li>slow log<\/li>\n<li>general log<\/li>\n<li>dump \u5907\u4efd<\/li>\n<li>\u4e34\u65f6\u5bfc\u51fa\u6587\u4ef6<\/li>\n<\/ul>\n<p>\u67e5\u770b MySQL \u76ee\u5f55&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/var\/lib\/mysql <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-lh<\/span> \/var\/lib\/mysql <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span><\/p>\n<p>\u67e5\u770b binlog&#xff1a;<\/p>\n<p><span class=\"token keyword\">SHOW<\/span> <span class=\"token keyword\">BINARY<\/span> LOGS<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">SHOW<\/span> VARIABLES <span class=\"token operator\">LIKE<\/span> <span class=\"token string\">&#039;expire_logs_days&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">SHOW<\/span> VARIABLES <span class=\"token operator\">LIKE<\/span> <span class=\"token string\">&#039;binlog_expire_logs_seconds&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u4e0d\u8981\u624b\u52a8\u5220\u9664 MySQL binlog \u6587\u4ef6\u3002\u5e94\u4f7f\u7528 MySQL \u547d\u4ee4\u6e05\u7406&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token keyword\">PURGE<\/span> <span class=\"token keyword\">BINARY<\/span> LOGS BEFORE <span class=\"token string\">&#039;2026-08-01 00:00:00&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u6e05\u7406\u524d\u5fc5\u987b\u786e\u8ba4\u5907\u4efd\u548c\u4e3b\u4ece\u590d\u5236\u72b6\u6001\u3002\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u6062\u590d\u94fe\u65ad\u88c2\u6216\u590d\u5236\u5f02\u5e38\u3002<\/p>\n<h3>7. \u9700\u8981\u7acb\u523b\u6062\u590d\u670d\u52a1\u65f6&#xff0c;\u6309\u98ce\u9669\u5206\u7ea7\u5904\u7406<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804095651-6a71b763ad6d6.png\" alt=\"\u6062\u590d\u4f18\u5148\u7ea7\" \/><\/p>\n<p>\u4f4e\u98ce\u9669\u91ca\u653e\u7a7a\u95f4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> journalctl &#8211;vacuum-size<span class=\"token operator\">&#061;<\/span>1G<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> clean<br \/>\n<span class=\"token function\">sudo<\/span> yum clean all<\/p>\n<p>\u4e2d\u98ce\u9669\u64cd\u4f5c&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> truncate <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">0<\/span> large-app.log<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> access.log access.log.bak <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> nginx <span class=\"token parameter variable\">-s<\/span> reopen<\/p>\n<p>\u9ad8\u98ce\u9669\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>\u5220\u9664\u6570\u636e\u5e93\u6587\u4ef6<\/li>\n<li>\u5220\u9664\u4e0a\u4f20\u76ee\u5f55<\/li>\n<li>\u5220\u9664\u5bb9\u5668 volume<\/li>\n<li>\u5220\u9664 \/var\/lib\/mysql<\/li>\n<li>\u5220\u9664 \/var\/lib\/docker\/volumes<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u64cd\u4f5c\u6ca1\u6709\u786e\u8ba4\u524d\u4e0d\u8981\u505a\u3002<\/p>\n<h3>8. \u4e91\u670d\u52a1\u5668\u4e0a\u66f4\u7a33\u7684\u65b9\u6848&#xff1a;\u6269\u5bb9\u3001\u5feb\u7167\u3001\u8fc1\u79fb<\/h3>\n<p>\u5982\u679c\u78c1\u76d8\u5df2\u7ecf\u53cd\u590d\u6ee1&#xff0c;\u4e0d\u8981\u53ea\u9760\u6e05\u65e5\u5fd7\u3002\u4e91\u670d\u52a1\u5668\u4e0a\u66f4\u7a33\u7684\u8def\u7ebf\u662f&#xff1a;<\/p>\n<li>\u521b\u5efa\u5feb\u7167\u3002<\/li>\n<li>\u6269\u5bb9\u4e91\u786c\u76d8\u3002<\/li>\n<li>\u5728\u7cfb\u7edf\u5185\u6269\u5c55\u5206\u533a\u548c\u6587\u4ef6\u7cfb\u7edf\u3002<\/li>\n<li>\u9a8c\u8bc1\u670d\u52a1\u548c\u6570\u636e\u3002<\/li>\n<p>\u817e\u8baf\u4e91\u4e91\u786c\u76d8\u5feb\u7167\u6587\u6863\u8bf4\u660e&#xff0c;\u5feb\u7167\u4fdd\u5b58\u67d0\u4e00\u65f6\u95f4\u70b9\u7684\u4e91\u786c\u76d8\u526f\u672c&#xff0c;\u53ef\u7528\u4e8e\u6062\u590d\u4e91\u786c\u76d8\u5230\u5feb\u7167\u521b\u5efa\u65f6\u7684\u6570\u636e\u72b6\u6001\u3002\u4e0d\u540c\u4e91\u5382\u5546\u90fd\u6709\u7c7b\u4f3c\u80fd\u529b&#xff0c;\u4e0a\u7ebf\u4e1a\u52a1\u5efa\u8bae\u5728\u91cd\u5927\u6e05\u7406\u3001\u6269\u5bb9\u548c\u5347\u7ea7\u524d\u5148\u505a\u5feb\u7167\u3002<\/p>\n<p>Linux \u5185\u90e8\u6269\u5bb9\u793a\u4f8b\u9700\u8981\u6309\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u6267\u884c&#xff1a;<\/p>\n<p>lsblk<br \/>\n<span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-Th<\/span><br \/>\n<span class=\"token function\">sudo<\/span> growpart \/dev\/vda <span class=\"token number\">1<\/span><br \/>\n<span class=\"token function\">sudo<\/span> resize2fs \/dev\/vda1<\/p>\n<p>\u5982\u679c\u662f XFS&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> xfs_growfs \/<\/p>\n<p>\u5b9e\u9645\u8bbe\u5907\u540d\u53ef\u80fd\u662f \/dev\/vda\u3001\/dev\/nvme0n1 \u6216\u5176\u4ed6\u540d\u79f0&#xff0c;\u4e0d\u8981\u7167\u6284\u8bbe\u5907\u540d\u6267\u884c\u3002<\/p>\n<h3>9. \u9884\u9632\u6e05\u5355&#xff1a;\u522b\u7b49 100% \u624d\u62a5\u8b66<\/h3>\n<ul>\n<li>\u78c1\u76d8\u4f7f\u7528\u7387\u8d85\u8fc7 75% \u53d1\u63d0\u9192&#xff0c;\u8d85\u8fc7 85% \u53d1\u544a\u8b66\u3002<\/li>\n<li>Docker \u914d\u7f6e\u65e5\u5fd7\u8f6e\u8f6c\u3002<\/li>\n<li>Nginx \u548c\u5e94\u7528\u65e5\u5fd7\u542f\u7528 logrotate\u3002<\/li>\n<li>\u6570\u636e\u5e93 binlog \u8bbe\u7f6e\u5408\u7406\u4fdd\u7559\u671f\u3002<\/li>\n<li>\u4e0a\u4f20\u6587\u4ef6\u4e0d\u8981\u957f\u671f\u5806\u5728\u7cfb\u7edf\u76d8\u3002<\/li>\n<li>\u5907\u4efd\u5305\u5199\u5230\u5bf9\u8c61\u5b58\u50a8\u6216\u72ec\u7acb\u6570\u636e\u76d8\u3002<\/li>\n<li>\u6bcf\u6708\u505a\u4e00\u6b21\u6062\u590d\u6f14\u7ec3\u3002<\/li>\n<li>\u91cd\u5927\u6e05\u7406\u548c\u6269\u5bb9\u524d\u5148\u521b\u5efa\u5feb\u7167\u3002<\/li>\n<\/ul>\n<h3>10. \u6700\u540e\u4e00\u5f20\u6392\u67e5\u901f\u67e5\u8868<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804095651-6a71b763f0208.png\" alt=\"\u6700\u7ec8\u901f\u67e5\u8868\" \/><\/p>\n<p>\u5982\u679c\u73b0\u5728\u673a\u5668\u5df2\u7ecf\u62a5\u8b66&#xff0c;\u53ef\u4ee5\u6309\u8fd9\u4e2a\u987a\u5e8f\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-ih<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/ <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">sudo<\/span> journalctl &#8211;disk-usage<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-xhd1<\/span> \/var\/lib\/docker <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">du<\/span> <span class=\"token parameter variable\">-h<\/span> \/var\/log\/nginx\/* <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-h<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">find<\/span> \/ <span class=\"token parameter variable\">-xdev<\/span> <span class=\"token parameter variable\">-type<\/span> f <span class=\"token parameter variable\">-size<\/span> &#043;500M <span class=\"token parameter variable\">-printf<\/span> <span class=\"token string\">&#039;%s %p\\\\n&#039;<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-20<\/span><\/p>\n<p>\u78c1\u76d8\u7206\u6ee1\u4e0d\u662f\u5355\u7eaf\u201c\u7a7a\u95f4\u4e0d\u591f\u201d&#xff0c;\u5b83\u5f80\u5f80\u66b4\u9732\u4e86\u65e5\u5fd7\u6cbb\u7406\u3001\u5907\u4efd\u7b56\u7565\u3001\u5e94\u7528\u5f02\u5e38\u8f93\u51fa\u3001\u6570\u636e\u5e93\u4fdd\u7559\u7b56\u7565\u548c\u76d1\u63a7\u544a\u8b66\u7684\u7f3a\u53e3\u3002\u771f\u6b63\u7a33\u5b9a\u7684\u670d\u52a1\u5668&#xff0c;\u4e0d\u662f\u6c38\u8fdc\u4e0d\u51fa\u95ee\u9898&#xff0c;\u800c\u662f\u51fa\u95ee\u9898\u65f6\u80fd\u5feb\u901f\u5b9a\u4f4d\u3001\u4f4e\u98ce\u9669\u6062\u590d&#xff0c;\u5e76\u5728\u4e0b\u4e00\u6b21\u4e4b\u524d\u628a\u540c\u7c7b\u95ee\u9898\u6321\u4f4f\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6b63\u5728\u7ef4\u62a4\u7f51\u7ad9\u3001API\u3001\u5c0f\u7a0b\u5e8f\u540e\u7aef\u6216 AI \u5e94\u7528\u670d\u52a1&#xff0c;\u53ef\u4ee5\u628a\u670d\u52a1\u5668\u914d\u7f6e\u3001\u78c1\u76d8\u5206\u533a\u3001Docker\/Nginx\/\u6570\u636e\u5e93\u60c5\u51b5\u6574\u7406\u6e05\u695a&#xff0c;\u518d\u505a\u9488\u5bf9\u6027\u7684\u5bb9\u91cf\u548c\u5907\u4efd\u65b9\u6848\u8bc4\u4f30\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u670d\u52a1\u5668\u6700\u6015\u7684\u4e00\u7c7b\u6545\u969c&#xff0c;\u4e0d\u662f CPU \u9ad8&#xff0c;\u4e5f\u4e0d\u662f\u5185\u5b58\u6296\u4e00\u4e0b&#xff0c;\u800c\u662f\u78c1\u76d8\u76f4\u63a5 100%\u3002\u78c1\u76d8\u4e00\u6ee1&#xff0c;Nginx \u53ef\u80fd\u5199\u4e0d\u4e86\u4e34\u65f6\u6587\u4ef6&#xff0c;MySQL \u53ef\u80fd\u65e0\u6cd5\u5199 binlog&#xff0c;Redis \u53ef\u80fd\u6301\u4e45\u5316\u5931\u8d25&#xff0c;Docker \u5bb9\u5668\u65e5\u5fd7\u53ef\u80fd\u7ee7\u7eed\u81a8\u80c0&#xff0c;\u8fde SSH \u767b\u5f55\u540e\u7684\u547d\u4ee4\u8865\u5168\u90fd\u53ef\u80fd\u53d8\u6162\u3002<br \/>\n\u5f88\u591a\u65b0\u624b\u770b\u5230\u78c1\u76d8\u7206\u6ee1&#xff0c;\u7b2c\u4e00\u53cd\u5e94\u662f\u968f\u624b rm -rf\u3002\u8fd9\u5f88\u5371\u9669\u3002\u751f\u4ea7\u673a\u5668\u4e0a\u5220\u9519\u76ee\u5f55&amp;#<\/p>\n","protected":false},"author":2,"featured_media":90075,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,58,17,43,44],"topic":[],"class_list":["post-90081","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-linux","tag-17","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/90081.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u670d\u52a1\u5668\u6700\u6015\u7684\u4e00\u7c7b\u6545\u969c&#xff0c;\u4e0d\u662f CPU \u9ad8&#xff0c;\u4e5f\u4e0d\u662f\u5185\u5b58\u6296\u4e00\u4e0b&#xff0c;\u800c\u662f\u78c1\u76d8\u76f4\u63a5 100%\u3002\u78c1\u76d8\u4e00\u6ee1&#xff0c;Nginx \u53ef\u80fd\u5199\u4e0d\u4e86\u4e34\u65f6\u6587\u4ef6&#xff0c;MySQL \u53ef\u80fd\u65e0\u6cd5\u5199 binlog&#xff0c;Redis \u53ef\u80fd\u6301\u4e45\u5316\u5931\u8d25&#xff0c;Docker \u5bb9\u5668\u65e5\u5fd7\u53ef\u80fd\u7ee7\u7eed\u81a8\u80c0&#xff0c;\u8fde SSH \u767b\u5f55\u540e\u7684\u547d\u4ee4\u8865\u5168\u90fd\u53ef\u80fd\u53d8\u6162\u3002 \u5f88\u591a\u65b0\u624b\u770b\u5230\u78c1\u76d8\u7206\u6ee1&#xff0c;\u7b2c\u4e00\u53cd\u5e94\u662f\u968f\u624b rm -rf\u3002\u8fd9\u5f88\u5371\u9669\u3002\u751f\u4ea7\u673a\u5668\u4e0a\u5220\u9519\u76ee\u5f55&amp;#\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/90081.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-04T09:56:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804095650-6a71b762790a4.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90081.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/90081.html\",\"name\":\"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-04T09:56:53+00:00\",\"dateModified\":\"2026-08-04T09:56:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/90081.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/90081.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90081.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/90081.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u670d\u52a1\u5668\u6700\u6015\u7684\u4e00\u7c7b\u6545\u969c&#xff0c;\u4e0d\u662f CPU \u9ad8&#xff0c;\u4e5f\u4e0d\u662f\u5185\u5b58\u6296\u4e00\u4e0b&#xff0c;\u800c\u662f\u78c1\u76d8\u76f4\u63a5 100%\u3002\u78c1\u76d8\u4e00\u6ee1&#xff0c;Nginx \u53ef\u80fd\u5199\u4e0d\u4e86\u4e34\u65f6\u6587\u4ef6&#xff0c;MySQL \u53ef\u80fd\u65e0\u6cd5\u5199 binlog&#xff0c;Redis \u53ef\u80fd\u6301\u4e45\u5316\u5931\u8d25&#xff0c;Docker \u5bb9\u5668\u65e5\u5fd7\u53ef\u80fd\u7ee7\u7eed\u81a8\u80c0&#xff0c;\u8fde SSH \u767b\u5f55\u540e\u7684\u547d\u4ee4\u8865\u5168\u90fd\u53ef\u80fd\u53d8\u6162\u3002 \u5f88\u591a\u65b0\u624b\u770b\u5230\u78c1\u76d8\u7206\u6ee1&#xff0c;\u7b2c\u4e00\u53cd\u5e94\u662f\u968f\u624b rm -rf\u3002\u8fd9\u5f88\u5371\u9669\u3002\u751f\u4ea7\u673a\u5668\u4e0a\u5220\u9519\u76ee\u5f55&amp;#","og_url":"https:\/\/www.wsisp.com\/helps\/90081.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-04T09:56:53+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804095650-6a71b762790a4.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/90081.html","url":"https:\/\/www.wsisp.com\/helps\/90081.html","name":"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-04T09:56:53+00:00","dateModified":"2026-08-04T09:56:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/90081.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/90081.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/90081.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\u78c1\u76d8\u7206\u6ee1\u522b\u5148\u4e71\u5220\uff1a\u4ece df\u3001du\u3001journalctl \u5230 Docker \u65e5\u5fd7\u7684\u5b8c\u6574\u6392\u67e5\u5b9e\u6218"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=90081"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90081\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/90075"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=90081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=90081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=90081"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=90081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}