{"id":2278,"date":"2021-03-19T20:53:50","date_gmt":"2021-03-19T12:53:50","guid":{"rendered":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/?p=2278"},"modified":"2021-03-19T20:53:50","modified_gmt":"2021-03-19T12:53:50","slug":"%e5%ae%9a%e6%97%b6%e6%b8%85%e7%90%86%e9%87%8a%e6%94%be%e5%86%85%e5%ad%98","status":"publish","type":"post","link":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2021\/03\/19\/%e5%ae%9a%e6%97%b6%e6%b8%85%e7%90%86%e9%87%8a%e6%94%be%e5%86%85%e5%ad%98\/","title":{"rendered":"\u5b9a\u65f6\u6e05\u7406\u91ca\u653e\u5185\u5b58"},"content":{"rendered":"\n<p>\u5bb6\u91cc\u6709\u53f0 Raspberry Pi3\uff0c \u65e5\u5e38\u505a\u70b9\u5c0f\u4efb\u52a1\uff0c\u6bd4\u5982\u505a samba \u670d\u52a1\u5668\u5f53 NAS\u3001\u505a web \u7684\u529f\u80fd\u6d4b\u8bd5\u3001\u5b66\u4e60\u70b9 Linux \u77e5\u8bc6\u7b49\uff0c\u57fa\u672c\u90fd\u662f\u4e00\u4e9b\u8d1f\u8377\u4e0d\u5927\u7684\u4efb\u52a1\u3002\u4e0d\u8fc7\u7531\u4e8e\u6211\u662f\u6b7b\u5fe0\u7684 GUI \u515a\uff0c \u56e0\u6b64\u603b\u662f\u559c\u6b22\u8fdb\u5165 Pi \u90a3\u4e2a\u5de8\u4e11\u65e0\u6bd4\u7684\u754c\u9762\u91cc\u8fdb\u884c\u64cd\u4f5c\uff0c\u8fd9\u4e5f\u5bfc\u81f4 Pi3 \u7684\u5185\u5b58\u4f1a\u9010\u6e10\u663e\u5f97\u6709\u4e9b\u6349\u895f\u89c1\u8098\uff0c\u65f6\u95f4\u957f\u4e86\uff0c\u5c31\u4e0d\u5f97\u4e0d\u4f7f\u7528 swap \u3002\u8fd9\u53ef\u80fd\u4f1a\u6709\u635f microSD \u5361\u7684\u5bff\u547d\uff0c\u56e0\u6b64\u5e0c\u671b Pi \u80fd\u5b9a\u65f6\u6e05\u7406\u3001\u91ca\u653e\u5185\u5b58\u3002<\/p>\n\n\n\n<p>\u7f51\u4e0a\u641c\u4e86\u641c\uff0c\u4e5f\u6bd4\u8f83\u7b80\u5355\uff0c\u800c\u4e14\u6548\u679c\u6bd4\u8f83\u660e\u663e\u3002\u7b80\u8981\u8bb0\u5f55\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<p>\u5728 \/etc\/cron.daily \u76ee\u5f55\u4e0b\uff0c\u521b\u5efa\u4e00\u4e2a gilson-clearcache \u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/sh\nsync\necho 3 > \/proc\/sys\/vm\/drop_caches<\/code><\/pre>\n\n\n\n<p>\u5c06\u8fd9\u4e2a\u6587\u4ef6\u8bbe\u7f6e\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u5373\u53ef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chmod +x .\/gilson-clearcache<\/pre>\n\n\n\n<p>\u8bbe\u7f6e\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u624b\u5de5\u6267\u884c\u4e00\u4e0b\uff0c\u53ef\u4ee5\u770b\u5230 &#8220;free -m&#8221; \u663e\u793a\u7684\u7ed3\u679c\u91cc\uff0c\u201cbuff\/cache available\u201d\u7b49\u9879\u6709\u660e\u663e\u7684\u6539\u5584\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u8003\u8651\u5230 Pi3 \u53ef\u601c\u7684 1GB \u5185\u5b58\uff0c\u8fd9\u79cd\u5185\u5b58\u56de\u6536\u65b9\u9762\u7684\u6539\u5584\uff0c\u4f30\u8ba1\u4e0d\u80fd\u4ece\u6839\u672c\u4e0a\u89e3\u51b3\u95ee\u9898\uff0c\u4e0a Pi4 \uff082GB\u6216\u80054GB\uff09\u6216\u8bb8\u66f4\u597d\u3002\u540e\u7eed\u7ee7\u7eed\u89c2\u5bdf\u4e00\u4e0b\uff0c\u5982\u679c\u5b9e\u5728\u4e0d\u884c\uff0c\u5c31\u6362 Pi4 \u6216\u8005\u7b49 Pi5 \u5427\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5bb6\u91cc\u6709\u53f0 Raspberry Pi3\uff0c \u65e5\u5e38\u505a\u70b9\u5c0f\u4efb\u52a1\uff0c\u6bd4\u5982\u505a samba \u670d\u52a1\u5668\u5f53 NAS\u3001\u505a web \u7684\u529f\u80fd\u6d4b\u8bd5\u3001\u5b66\u4e60\u70b9 Linux \u77e5\u8bc6\u7b49\uff0c\u57fa\u672c\u90fd\u662f\u4e00\u4e9b\u8d1f&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2021\/03\/19\/%e5%ae%9a%e6%97%b6%e6%b8%85%e7%90%86%e9%87%8a%e6%94%be%e5%86%85%e5%ad%98\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[11,307,504,571,812,813,305],"class_list":["post-2278","post","type-post","status-publish","format-standard","hentry","category-53","tag-linux","tag-pi","tag-swap","tag-571","tag-812","tag-813","tag-305"],"_links":{"self":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/2278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/comments?post=2278"}],"version-history":[{"count":1,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/2278\/revisions"}],"predecessor-version":[{"id":2279,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/2278\/revisions\/2279"}],"wp:attachment":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/media?parent=2278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/categories?post=2278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/tags?post=2278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}