{"id":10,"date":"2025-10-09T08:41:55","date_gmt":"2025-10-09T00:41:55","guid":{"rendered":"https:\/\/47.99.41.133\/?p=10"},"modified":"2025-10-09T08:41:55","modified_gmt":"2025-10-09T00:41:55","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4%e4%b8%8d%e8%b6%b3%e7%9a%84%e6%8e%92%e6%9f%a5%e4%b8%8e%e6%b8%85%e7%90%86%e5%85%a8%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.lhws.top\/index.php\/2025\/10\/09\/%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4%e4%b8%8d%e8%b6%b3%e7%9a%84%e6%8e%92%e6%9f%a5%e4%b8%8e%e6%b8%85%e7%90%86%e5%85%a8%e8%bf%87%e7%a8%8b\/","title":{"rendered":"\u670d\u52a1\u5668\u78c1\u76d8\u7a7a\u95f4\u4e0d\u8db3\u7684\u6392\u67e5\u4e0e\u6e05\u7406\u5168\u8fc7\u7a0b"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\ud83e\udde9 \u4e00\u3001\u95ee\u9898\u80cc\u666f<\/h3>\n\n\n\n<p>\u524d\u6bb5\u65f6\u95f4\u6211\u7684\u7f51\u7ad9\u7a81\u7136\u53d8\u5f97\u975e\u5e38\u5361\uff0c\u540e\u53f0\u64cd\u4f5c\u7ecf\u5e38\u62a5\u9519\uff0c\u751a\u81f3 Nginx \u90fd\u65e0\u6cd5\u542f\u52a8\u3002<br>\u6211\u7528 <code>df -h<\/code> \u67e5\u770b\u78c1\u76d8\u540e\u53d1\u73b0\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u6839\u76ee\u5f55 <code>\/<\/code> \u7684\u78c1\u76d8\u4f7f\u7528\u7387\u63a5\u8fd1 100%\u3002<\/p>\n<\/blockquote>\n\n\n\n<p>\u8fd9\u8bf4\u660e\u670d\u52a1\u5668\u78c1\u76d8\u5df2\u7ecf\u88ab\u65e5\u5fd7\u3001\u7f13\u5b58\u3001\u6216\u4e34\u65f6\u6587\u4ef6\u585e\u6ee1\u3002<br>\u4e8e\u662f\u6211\u5f00\u59cb\u7740\u624b\u6e05\u7406\u6574\u4e2a\u7cfb\u7edf\u7a7a\u95f4\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd0d \u4e8c\u3001\u95ee\u9898\u6392\u67e5<\/h3>\n\n\n\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u67e5\u770b\u5404\u76ee\u5f55\u5360\u7528\u60c5\u51b5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h\ndu -sh \/* | sort -h\n<\/code><\/pre>\n\n\n\n<p>\u7ed3\u679c\u53d1\u73b0 <code>\/var\/log\/<\/code>\u3001<code>\/var\/cache\/<\/code>\u3001<code>\/tmp\/<\/code> \u7b49\u76ee\u5f55\u7a7a\u95f4\u5f02\u5e38\u5927\u3002<br>\u5c24\u5176\u662f\u65e5\u5fd7\u6587\u4ef6\uff08<code>.log<\/code> \u548c <code>.gz<\/code>\uff09\u4ee5\u53ca\u5386\u53f2\u7f13\u5b58\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddf9 \u4e09\u3001\u6e05\u7406\u6b65\u9aa4<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1\ufe0f\u20e3 \u6e05\u7406\u65e5\u5fd7\u6587\u4ef6<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -f \/var\/log\/*.log\njournalctl --vacuum-time=3d\n<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4f1a\u6e05\u7406\u65e7\u65e5\u5fd7\uff0c\u4ec5\u4fdd\u7559\u6700\u8fd1\u4e09\u5929\u7684\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2\ufe0f\u20e3 \u6e05\u7406\u7f13\u5b58\u4e0e\u4e34\u65f6\u6587\u4ef6<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>yum clean all\nrm -rf \/var\/cache\/*\nrm -rf \/tmp\/*\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3\ufe0f\u20e3 \u5220\u9664\u65e7\u5185\u6838\uff08CentOS \/ Anolis OS\uff09<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf remove $(dnf repoquery --installonly --latest-limit=-2 -q)\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">4\ufe0f\u20e3 \u6e05\u7406 Certbot \u65e7\u8bc1\u4e66\uff08\u5982\u6709\u66f4\u6362\u57df\u540d\uff09<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/etc\/letsencrypt\/live\/OLD_DOMAIN\nrm -rf \/etc\/letsencrypt\/archive\/OLD_DOMAIN\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 \u56db\u3001\u7ed3\u679c\u9a8c\u8bc1<\/h3>\n\n\n\n<p>\u518d\u6b21\u6267\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h\n<\/code><\/pre>\n\n\n\n<p>\u53d1\u73b0\u7a7a\u95f4\u6062\u590d\u5145\u8db3\uff0c\u4ece\u539f\u6765\u7684 100% \u964d\u5230\u4e86 30% \u5de6\u53f3\u3002<br>\u6574\u4e2a\u7cfb\u7edf\u8fd0\u884c\u6062\u590d\u6b63\u5e38\uff0cWordPress \u540e\u53f0\u4e5f\u4e0d\u518d\u62a5\u9519\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udca1 \u4e94\u3001\u7ecf\u9a8c\u603b\u7ed3<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b9a\u671f\u6e05\u7406 <code>\/var\/log\/<\/code>\u3001<code>\/var\/cache\/<\/code>\u3001<code>\/tmp\/<\/code>\u3002<\/li>\n\n\n\n<li>\u542f\u7528\u65e5\u5fd7\u8f6e\u8f6c\u6216\u538b\u7f29\u673a\u5236\u3002<\/li>\n\n\n\n<li>\u5bf9\u4e8e\u5c0f\u578b\u670d\u52a1\u5668\uff081GB~2GB\uff09\uff0c\u5efa\u8bae\u6bcf\u6708\u68c0\u67e5\u4e00\u6b21\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\u3002<\/li>\n\n\n\n<li>\u4f7f\u7528 <code>ncdu<\/code>\uff08\u82e5\u5b89\u88c5\uff09\u80fd\u66f4\u76f4\u89c2\u5730\u67e5\u770b\u5360\u7528\u5927\u6237\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>\u2705 \u6700\u7ec8\u7ed3\u679c\uff1a<\/strong><br>\u7cfb\u7edf\u8fd0\u884c\u6062\u590d\u6b63\u5e38\uff0cNginx\/PHP \u670d\u52a1\u7a33\u5b9a\uff0cWordPress \u540e\u53f0\u987a\u7545\u65e0\u5361\u987f\u3002<br>\u4e00\u6b21\u5b8c\u6574\u7684\u201c\u7a7a\u95f4\u6551\u63f4\u201d\u884c\u52a8\uff0c\u5b8c\u7f8e\u6536\u5b98\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde9 \u4e00\u3001\u95ee\u9898\u80cc\u666f \u524d\u6bb5\u65f6\u95f4\u6211\u7684\u7f51\u7ad9\u7a81\u7136\u53d8\u5f97\u975e\u5e38\u5361\uff0c\u540e\u53f0\u64cd\u4f5c\u7ecf\u5e38\u62a5\u9519\uff0c\u751a\u81f3 Nginx \u90fd\u65e0\u6cd5\u542f\u52a8\u3002\u6211\u7528 df  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":1,"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":11,"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/posts\/10\/revisions\/11"}],"wp:attachment":[{"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lhws.top\/index.php\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}