{"id":126597,"date":"2018-11-15T08:32:05","date_gmt":"2018-11-15T00:32:05","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=126597"},"modified":"2018-11-06T14:32:32","modified_gmt":"2018-11-06T06:32:32","slug":"swap-space-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/swap-space-linux.html","title":{"rendered":"\u5982\u4f55\u4fee\u6539\u7cfb\u7edf\u4ea4\u6362\u7a7a\u95f4\u7684\u5bb9\u91cf"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5f53\u4eca\u65e0\u8bba\u4ec0\u4e48\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u6362Swap\u7a7a\u95f4\u662f\u975e\u5e38\u5e38\u89c1\u7684\u3002Linux \u4f7f\u7528\u4ea4\u6362\u7a7a\u95f4\u6765\u589e\u52a0\u4e3b\u673a\u53ef\u7528\u7684\u865a\u62df\u5185\u5b58\u3002\u5b83\u53ef\u4ee5\u5728\u5e38\u89c4\u6587\u4ef6\u6216\u903b\u8f91\u5377\u4e0a\u4f7f\u7528\u4e00\u4e2a\u6216\u591a\u4e2a\u4e13\u7528\u4ea4\u6362\u5206\u533a\u6216\u4ea4\u6362\u6587\u4ef6\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5b66\u4e60\u5982\u4f55\u4fee\u6539\u4f60\u7684\u7cfb\u7edf\u4e0a\u7684\u4ea4\u6362\u7a7a\u95f4\u7684\u5bb9\u91cf\uff0c\u4ee5\u53ca\u4f60\u5230\u5e95\u9700\u8981\u591a\u5927\u7684\u4ea4\u6362\u7a7a\u95f4\u3002
\n\"\"<\/p>\n

\u5178\u578b\u8ba1\u7b97\u673a\u4e2d\u6709\u4e24\u79cd\u57fa\u672c\u7c7b\u578b\u7684\u5185\u5b58\u3002\u7b2c\u4e00\u79cd\u7c7b\u578b\uff0c\u968f\u673a\u5b58\u53d6\u5b58\u50a8\u5668 (RAM)\uff0c\u7528\u4e8e\u5b58\u50a8\u8ba1\u7b97\u673a\u4f7f\u7528\u7684\u6570\u636e\u548c\u7a0b\u5e8f\u3002\u53ea\u6709\u7a0b\u5e8f\u548c\u6570\u636e\u5b58\u50a8\u5728 RAM \u4e2d\uff0c\u8ba1\u7b97\u673a\u624d\u80fd\u4f7f\u7528\u5b83\u4eec\u3002\u968f\u673a\u5b58\u50a8\u5668\u662f\u6613\u5931\u6027\u5b58\u50a8\u5668\uff1b\u4e5f\u5c31\u662f\u8bf4\uff0c\u5982\u679c\u8ba1\u7b97\u673a\u5173\u95ed\u4e86\uff0c\u5b58\u50a8\u5728 RAM \u4e2d\u7684\u6570\u636e\u5c31\u4f1a\u4e22\u5931\u3002<\/p>\n

\u786c\u76d8\u662f\u7528\u4e8e\u957f\u671f\u5b58\u50a8\u6570\u636e\u548c\u7a0b\u5e8f\u7684\u78c1\u6027\u4ecb\u8d28\u3002\u8be5\u78c1\u4ecb\u8d28\u53ef\u4ee5\u5f88\u597d\u7684\u4fdd\u5b58\u6570\u636e\uff1b\u5373\u4f7f\u8ba1\u7b97\u673a\u65ad\u7535\uff0c\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u4e5f\u4f1a\u4fdd\u7559\u4e0b\u6765\u3002CPU\uff08\u4e2d\u592e\u5904\u7406\u5668\uff09\u4e0d\u80fd\u76f4\u63a5\u8bbf\u95ee\u786c\u76d8\u4e0a\u7684\u7a0b\u5e8f\u548c\u6570\u636e\uff1b\u5b83\u4eec\u5fc5\u987b\u9996\u5148\u590d\u5236\u5230 RAM \u4e2d\uff0cRAM \u662f CPU \u8bbf\u95ee\u4ee3\u7801\u6307\u4ee4\u548c\u64cd\u4f5c\u6570\u636e\u7684\u5730\u65b9\u3002\u5728\u5f15\u5bfc\u8fc7\u7a0b\u4e2d\uff0c\u8ba1\u7b97\u673a\u5c06\u7279\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u7a0b\u5e8f\uff08\u5982\u5185\u6838\u3001init \u6216 systemd\uff09\u4ee5\u53ca\u786c\u76d8\u4e0a\u7684\u6570\u636e\u590d\u5236\u5230 RAM \u4e2d\uff0c\u5728 RAM \u4e2d\uff0c\u8ba1\u7b97\u673a\u7684\u5904\u7406\u5668 CPU \u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u8fd9\u4e9b\u6570\u636e\u3002<\/p>\n

\u4ea4\u6362\u7a7a\u95f4<\/strong><\/div>\n

\u4ea4\u6362\u7a7a\u95f4\u662f\u73b0\u4ee3 Linux \u7cfb\u7edf\u4e2d\u7684\u7b2c\u4e8c\u79cd\u5185\u5b58\u7c7b\u578b\u3002\u4ea4\u6362\u7a7a\u95f4\u7684\u4e3b\u8981\u529f\u80fd\u662f\u5f53\u5168\u90e8\u7684 RAM \u88ab\u5360\u7528\u5e76\u4e14\u9700\u8981\u66f4\u591a\u5185\u5b58\u65f6\uff0c\u7528\u78c1\u76d8\u7a7a\u95f4\u4ee3\u66ff RAM \u5185\u5b58\u3002<\/p>\n

\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a 8GB RAM \u7684\u8ba1\u7b97\u673a\u3002\u5982\u679c\u4f60\u542f\u52a8\u7684\u7a0b\u5e8f\u6ca1\u6709\u586b\u6ee1 RAM\uff0c\u4e00\u5207\u90fd\u597d\uff0c\u4e0d\u9700\u8981\u4ea4\u6362\u3002\u5047\u8bbe\u4f60\u5728\u5904\u7406\u7535\u5b50\u8868\u683c\uff0c\u5f53\u6dfb\u52a0\u66f4\u591a\u7684\u884c\u65f6\uff0c\u4f60\u7535\u5b50\u8868\u683c\u4f1a\u589e\u957f\uff0c\u52a0\u4e0a\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\uff0c\u5c06\u4f1a\u5360\u7528\u5168\u90e8\u7684 RAM \u3002\u5982\u679c\u8fd9\u65f6\u6ca1\u6709\u53ef\u7528\u7684\u4ea4\u6362\u7a7a\u95f4\uff0c\u4f60\u5c06\u4e0d\u5f97\u4e0d\u505c\u6b62\u5904\u7406\u7535\u5b50\u8868\u683c\uff0c\u76f4\u5230\u5173\u95ed\u4e00\u4e9b\u5176\u4ed6\u7a0b\u5e8f\u6765\u91ca\u653e\u4e00\u4e9b RAM \u3002<\/p>\n

\u5185\u6838\u4f7f\u7528\u4e00\u4e2a\u5185\u5b58\u7ba1\u7406\u7a0b\u5e8f\u6765\u68c0\u6d4b\u6700\u8fd1\u6ca1\u6709\u4f7f\u7528\u7684\u5185\u5b58\u5757\uff08\u5185\u5b58\u9875\uff09\u3002\u5185\u5b58\u7ba1\u7406\u7a0b\u5e8f\u5c06\u8fd9\u4e9b\u76f8\u5bf9\u4e0d\u7ecf\u5e38\u4f7f\u7528\u7684\u5185\u5b58\u9875\u4ea4\u6362\u5230\u786c\u76d8\u4e0a\u4e13\u95e8\u6307\u5b9a\u7528\u4e8e\u201c\u5206\u9875\u201d\u6216\u4ea4\u6362\u7684\u7279\u6b8a\u5206\u533a\u3002\u8fd9\u4f1a\u91ca\u653e RAM\uff0c\u4e3a\u8f93\u5165\u7535\u5b50\u8868\u683c\u66f4\u591a\u6570\u636e\u817e\u51fa\u4e86\u7a7a\u95f4\u3002\u90a3\u4e9b\u6362\u51fa\u5230\u786c\u76d8\u7684\u5185\u5b58\u9875\u9762\u88ab\u5185\u6838\u7684\u5185\u5b58\u7ba1\u7406\u4ee3\u7801\u8ddf\u8e2a\uff0c\u5982\u679c\u9700\u8981\uff0c\u53ef\u4ee5\u88ab\u5206\u9875\u56de RAM\u3002<\/p>\n

Linux \u8ba1\u7b97\u673a\u4e2d\u7684\u5185\u5b58\u603b\u91cf\u662f RAM + \u4ea4\u6362\u5206\u533a\uff0c\u4ea4\u6362\u5206\u533a\u88ab\u79f0\u4e3a\u865a\u62df\u5185\u5b58.<\/p>\n

Linux \u4ea4\u6362\u5206\u533a\u7c7b\u578b<\/strong><\/div>\n

Linux \u63d0\u4f9b\u4e86\u4e24\u79cd\u7c7b\u578b\u7684\u4ea4\u6362\u7a7a\u95f4\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5927\u591a\u6570 Linux \u5728\u5b89\u88c5\u65f6\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a\u4ea4\u6362\u5206\u533a\uff0c\u4f46\u662f\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u7279\u6b8a\u914d\u7f6e\u7684\u6587\u4ef6\u4f5c\u4e3a\u4ea4\u6362\u6587\u4ef6\u3002\u4ea4\u6362\u5206\u533a\u987e\u540d\u601d\u4e49\u5c31\u662f\u4e00\u4e2a\u6807\u51c6\u78c1\u76d8\u5206\u533a\uff0c\u7531 mkswap \u547d\u4ee4\u6307\u5b9a\u4ea4\u6362\u7a7a\u95f4\u3002<\/p>\n

\u5982\u679c\u6ca1\u6709\u53ef\u7528\u78c1\u76d8\u7a7a\u95f4\u6765\u521b\u5efa\u65b0\u7684\u4ea4\u6362\u5206\u533a\uff0c\u6216\u8005\u5377\u7ec4\u4e2d\u6ca1\u6709\u7a7a\u95f4\u4e3a\u4ea4\u6362\u7a7a\u95f4\u521b\u5efa\u903b\u8f91\u5377\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u4ea4\u6362\u6587\u4ef6\u3002\u8fd9\u53ea\u662f\u4e00\u4e2a\u521b\u5efa\u597d\u5e76\u9884\u5206\u914d\u6307\u5b9a\u5927\u5c0f\u7684\u5e38\u89c4\u6587\u4ef6\u3002\u7136\u540e\u8fd0\u884c mkswap\u547d\u4ee4\u5c06\u5176\u914d\u7f6e\u4e3a\u4ea4\u6362\u7a7a\u95f4\u3002\u9664\u975e\u7edd\u5bf9\u5fc5\u8981\uff0c\u5426\u5219\u6211\u4e0d\u5efa\u8bae\u4f7f\u7528\u6587\u4ef6\u6765\u505a\u4ea4\u6362\u7a7a\u95f4\u3002\uff08LCTT \u8bd1\u6ce8\uff1aUbuntu \u8fd1\u6765\u7684\u7248\u672c\u91c7\u7528\u4e86\u4ea4\u6362\u6587\u4ef6\u800c\u975e\u4ea4\u6362\u7a7a\u95f4\uff0c\u6240\u4ee5\u6211\u5bf9\u4e8e\u8fd9\u79cd\u8bf4\u6cd5\u4fdd\u7559\u770b\u6cd5\uff09<\/p>\n

\u9891\u7e41\u4ea4\u6362<\/strong><\/div>\n

\u5f53\u603b\u865a\u62df\u5185\u5b58\uff08RAM \u548c\u4ea4\u6362\u7a7a\u95f4\uff09\u53d8\u5f97\u5feb\u6ee1\u65f6\uff0c\u53ef\u80fd\u4f1a\u53d1\u751f\u9891\u7e41\u4ea4\u6362\u3002\u7cfb\u7edf\u82b1\u4e86\u592a\u591a\u65f6\u95f4\u5728\u4ea4\u6362\u7a7a\u95f4\u548c RAM \u4e4b\u95f4\u505a\u5185\u5b58\u5757\u7684\u9875\u9762\u5207\u6362\uff0c\u4ee5\u81f3\u4e8e\u51e0\u4e4e\u6ca1\u6709\u65f6\u95f4\u7528\u4e8e\u5b9e\u9645\u5de5\u4f5c\u3002\u8fd9\u79cd\u60c5\u51b5\u7684\u5178\u578b\u75c7\u72b6\u662f\uff1a\u7cfb\u7edf\u53d8\u5f97\u7f13\u6162\u6216\u5b8c\u5168\u65e0\u53cd\u5e94\uff0c\u786c\u76d8\u6307\u793a\u706f\u51e0\u4e4e\u6301\u7eed\u4eae\u8d77\u3002<\/p>\n

\u4f7f\u7528 free \u7684\u547d\u4ee4\u6765\u663e\u793a CPU \u8d1f\u8f7d\u548c\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\uff0c\u4f60\u4f1a\u53d1\u73b0 CPU \u8d1f\u8f7d\u975e\u5e38\u9ad8\uff0c\u53ef\u80fd\u8fbe\u5230\u7cfb\u7edf\u4e2d CPU \u5185\u6838\u6570\u91cf\u7684 30 \u5230 40 \u500d\u3002\u53e6\u4e00\u4e2a\u60c5\u51b5\u662f RAM \u548c\u4ea4\u6362\u7a7a\u95f4\u51e0\u4e4e\u5b8c\u5168\u88ab\u5206\u914d\u4e86\u3002<\/p>\n

\u4e8b\u5b9e\u4e0a\uff0c\u67e5\u770b SAR\uff08\u7cfb\u7edf\u6d3b\u52a8\u62a5\u544a\uff09\u6570\u636e\u4e5f\u53ef\u4ee5\u663e\u793a\u8fd9\u4e9b\u5185\u5bb9\u3002\u5728\u6211\u7684\u6bcf\u4e2a\u7cfb\u7edf\u4e0a\u90fd\u5b89\u88c5 SAR \uff0c\u5e76\u5c06\u8fd9\u4e9b\u7528\u4e8e\u6570\u636e\u5206\u6790\u3002<\/p>\n

\u4ea4\u6362\u7a7a\u95f4\u7684\u6b63\u786e\u5927\u5c0f\u662f\u591a\u5c11\uff1f<\/strong><\/div>\n

\u8bb8\u591a\u5e74\u524d\uff0c\u786c\u76d8\u4e0a\u5206\u914d\u7ed9\u4ea4\u6362\u7a7a\u95f4\u5927\u5c0f\u662f\u8ba1\u7b97\u673a\u4e0a\u7684 RAM \u7684\u4e24\u500d\uff08\u5f53\u7136\uff0c\u8fd9\u662f\u5927\u591a\u6570\u8ba1\u7b97\u673a\u7684 RAM \u4ee5 KB \u6216 MB \u4e3a\u5355\u4f4d\u7684\u65f6\u5019\uff09\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4e00\u53f0\u8ba1\u7b97\u673a\u6709 64KB \u7684 RAM\uff0c\u5e94\u8be5\u5206\u914d 128KB \u7684\u4ea4\u6362\u5206\u533a\u3002\u8be5\u89c4\u5219\u8003\u8651\u5230\u4e86\u8fd9\u6837\u7684\u4e8b\u5b9e\u60c5\u51b5\uff0c\u5373 RAM \u5927\u5c0f\u5728\u5f53\u65f6\u975e\u5e38\u5c0f\uff0c\u5206\u914d\u8d85\u8fc7 2 \u500d\u7684 RAM \u7528\u4e8e\u4ea4\u6362\u7a7a\u95f4\u5e76\u4e0d\u80fd\u63d0\u9ad8\u6027\u80fd\u3002\u4f7f\u7528\u8d85\u8fc7\u4e24\u500d\u7684 RAM \u8fdb\u884c\u4ea4\u6362\uff0c\u6bd4\u5b9e\u9645\u6267\u884c\u6709\u7528\u7684\u5de5\u4f5c\u7684\u65f6\u5019\uff0c\u5927\u591a\u6570\u7cfb\u7edf\u5c06\u82b1\u8d39\u66f4\u591a\u7684\u65f6\u95f4\u3002<\/p>\n

RAM \u73b0\u5728\u5df2\u7ecf\u5f88\u4fbf\u5b9c\u4e86\uff0c\u5982\u4eca\u5927\u591a\u6570\u8ba1\u7b97\u673a\u7684 RAM \u90fd\u8fbe\u5230\u4e86\u51e0\u5341\u4ebf\u5b57\u8282\u3002\u6211\u7684\u5927\u591a\u6570\u65b0\u7535\u8111\u81f3\u5c11\u6709 8GB \u5185\u5b58\uff0c\u4e00\u53f0\u6709 32GB \u5185\u5b58\uff0c\u6211\u7684\u4e3b\u5de5\u4f5c\u7ad9\u6709 64GB \u5185\u5b58\u3002\u6211\u7684\u65e7\u7535\u8111\u6709 4 \u5230 8GB \u7684\u5185\u5b58\u3002<\/p>\n

\u5f53\u64cd\u4f5c\u5177\u6709\u5927\u91cf RAM \u7684\u8ba1\u7b97\u673a\u65f6\uff0c\u4ea4\u6362\u7a7a\u95f4\u7684\u9650\u5236\u6027\u80fd\u7cfb\u6570\u8fdc\u4f4e\u4e8e 2 \u500d\u3002Fedora 28 \u5728\u7ebf\u5b89\u88c5\u6307\u5357\u5b9a\u4e49\u4e86\u5f53\u524d\u5173\u4e8e\u4ea4\u6362\u7a7a\u95f4\u5206\u914d\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u5185\u5bb9\u662f\u6211\u63d0\u51fa\u7684\u5efa\u8bae\u3002<\/p>\n

\u4e0b\u8868\u6839\u636e\u7cfb\u7edf\u4e2d\u7684 RAM \u5927\u5c0f\u4ee5\u53ca\u662f\u5426\u6709\u8db3\u591f\u7684\u5185\u5b58\u8ba9\u7cfb\u7edf\u4f11\u7720\uff0c\u63d0\u4f9b\u4e86\u4ea4\u6362\u5206\u533a\u7684\u63a8\u8350\u5927\u5c0f\u3002\u5efa\u8bae\u7684\u4ea4\u6362\u5206\u533a\u5927\u5c0f\u662f\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u81ea\u52a8\u5efa\u7acb\u7684\u3002\u4f46\u662f\uff0c\u4e3a\u4e86\u6ee1\u8db3\u7cfb\u7edf\u4f11\u7720\uff0c\u60a8\u9700\u8981\u5728\u81ea\u5b9a\u4e49\u5206\u533a\u9636\u6bb5\u7f16\u8f91\u4ea4\u6362\u7a7a\u95f4\u3002<\/p>\n

\u5f53\u7136\uff0c\u5927\u591a\u6570 Linux \u7ba1\u7406\u5458\u5bf9\u591a\u5927\u7684\u4ea4\u6362\u7a7a\u95f4\u91cf\u6709\u81ea\u5df1\u7684\u60f3\u6cd5\u3002\u4e0b\u9762\u7684\u88682 \u5305\u542b\u4e86\u57fa\u4e8e\u6211\u5728\u591a\u79cd\u73af\u5883\u4e2d\u7684\u4e2a\u4eba\u7ecf\u5386\u6240\u505a\u51fa\u7684\u5efa\u8bae\u3002\u8fd9\u4e9b\u53ef\u80fd\u4e0d\u9002\u5408\u4f60\uff0c\u4f46\u662f\u548c\u8868 1 \u4e00\u6837\uff0c\u5b83\u4eec\u53ef\u80fd\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002\u5728\u4e0a\u9762\u5217\u51fa\u7684\u6bcf\u4e2a\u8303\u56f4\u4e4b\u95f4\u7684\u8fb9\u754c(\u4f8b\u5982\uff0c\u5177\u6709 2GB\u30018GB \u6216 64GB \u7684\u7cfb\u7edf RAM)\uff0c\u8bf7\u6839\u636e\u6240\u9009\u4ea4\u6362\u7a7a\u95f4\u548c\u652f\u6301\u4f11\u7720\u529f\u80fd\u8bf7\u8c28\u614e\u4f7f\u7528\u3002\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u8d44\u6e90\u5141\u8bb8\uff0c\u589e\u52a0\u4ea4\u6362\u7a7a\u95f4\u53ef\u80fd\u4f1a\u5e26\u6765\u66f4\u597d\u7684\u6027\u80fd\u3002<\/p>\n

\u968f\u7740 RAM \u6570\u91cf\u7684\u589e\u52a0\uff0c\u8d85\u8fc7\u67d0\u4e00\u70b9\u589e\u52a0\u66f4\u591a\u4ea4\u6362\u7a7a\u95f4\u53ea\u4f1a\u5bfc\u81f4\u5728\u4ea4\u6362\u7a7a\u95f4\u51e0\u4e4e\u88ab\u5168\u90e8\u4f7f\u7528\u4e4b\u524d\u5c31\u53d1\u751f\u9891\u7e41\u4ea4\u6362\u3002\u6839\u636e\u4ee5\u4e0a\u5efa\u8bae\uff0c\u5219\u5e94\u5c3d\u53ef\u80fd\u6dfb\u52a0\u66f4\u591a RAM\uff0c\u800c\u4e0d\u662f\u589e\u52a0\u66f4\u591a\u4ea4\u6362\u7a7a\u95f4\u3002\u5982\u7c7b\u4f3c\u5f71\u54cd\u7cfb\u7edf\u6027\u80fd\u7684\u60c5\u51b5\u4e00\u6837\uff0c\u8bf7\u4f7f\u7528\u6700\u9002\u5408\u4f60\u7684\u5efa\u8bae\u3002\u6839\u636e Linux \u73af\u5883\u4e2d\u7684\u6761\u4ef6\u8fdb\u884c\u6d4b\u8bd5\u548c\u66f4\u6539\u662f\u9700\u8981\u65f6\u95f4\u548c\u7cbe\u529b\u7684\u3002<\/p>\n

\u5411\u975e LVM \u78c1\u76d8\u73af\u5883\u6dfb\u52a0\u66f4\u591a\u4ea4\u6362\u7a7a\u95f4<\/strong><\/div>\n

\u9762\u5bf9\u5df2\u5b89\u88c5 Linux \u7684\u4e3b\u673a\u5e76\u5bf9\u4ea4\u6362\u7a7a\u95f4\u7684\u9700\u6c42\u4e0d\u65ad\u53d8\u5316\uff0c\u6709\u65f6\u6709\u5fc5\u8981\u4fee\u6539\u7cfb\u7edf\u5b9a\u4e49\u7684\u4ea4\u6362\u7a7a\u95f4\u7684\u5927\u5c0f\u3002\u6b64\u8fc7\u7a0b\u53ef\u7528\u4e8e\u9700\u8981\u589e\u52a0\u4ea4\u6362\u7a7a\u95f4\u5927\u5c0f\u7684\u4efb\u4f55\u60c5\u51b5\u3002\u5b83\u5047\u8bbe\u6709\u8db3\u591f\u7684\u53ef\u7528\u78c1\u76d8\u7a7a\u95f4\u3002\u6b64\u8fc7\u7a0b\u8fd8\u5047\u8bbe\u78c1\u76d8\u5206\u533a\u4e3a \u201c\u539f\u59cb\u7684\u201d EXT4 \u548c\u4ea4\u6362\u5206\u533a\uff0c\u800c\u4e0d\u662f\u4f7f\u7528\u903b\u8f91\u5377\u7ba1\u7406\uff08LVM\uff09\u3002<\/p>\n

\u57fa\u672c\u6b65\u9aa4\u5f88\u7b80\u5355:<\/p>\n

    \n
  1. \u5173\u95ed\u73b0\u6709\u7684\u4ea4\u6362\u7a7a\u95f4\u3002<\/li>\n
  2. \u521b\u5efa\u6240\u9700\u5927\u5c0f\u7684\u65b0\u4ea4\u6362\u5206\u533a\u3002<\/li>\n
  3. \u91cd\u8bfb\u5206\u533a\u8868\u3002<\/li>\n
  4. \u5c06\u5206\u533a\u914d\u7f6e\u4e3a\u4ea4\u6362\u7a7a\u95f4\u3002<\/li>\n
  5. \u6dfb\u52a0\u65b0\u5206\u533a\u5230 \/etc\/fstab\u3002<\/li>\n
  6. \u6253\u5f00\u4ea4\u6362\u7a7a\u95f4\u3002<\/li>\n<\/ol>\n

    \u5e94\u8be5\u4e0d\u9700\u8981\u91cd\u65b0\u542f\u52a8\u673a\u5668\u3002<\/p>\n

    \u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0c\u5728\u5173\u95ed\u4ea4\u6362\u7a7a\u95f4\u524d\uff0c\u81f3\u5c11\u4f60\u5e94\u8be5\u786e\u4fdd\u6ca1\u6709\u5e94\u7528\u7a0b\u5e8f\u5728\u8fd0\u884c\uff0c\u4e5f\u6ca1\u6709\u4ea4\u6362\u7a7a\u95f4\u5728\u4f7f\u7528\u3002free \u6216 top \u547d\u4ee4\u53ef\u4ee5\u544a\u8bc9\u4f60\u4ea4\u6362\u7a7a\u95f4\u662f\u5426\u5728\u4f7f\u7528\u4e2d\u3002\u4e3a\u4e86\u66f4\u5b89\u5168\uff0c\u60a8\u53ef\u4ee5\u6062\u590d\u5230\u8fd0\u884c\u7ea7\u522b 1 \u6216\u5355\u7528\u6237\u6a21\u5f0f\u3002<\/p>\n

    \u4f7f\u7528\u5173\u95ed\u6240\u6709\u4ea4\u6362\u7a7a\u95f4\u7684\u547d\u4ee4\u5173\u95ed\u4ea4\u6362\u5206\u533a\uff1a<\/p>\n

    swapoff -a<\/pre>\n

    \u73b0\u5728\u67e5\u770b\u786c\u76d8\u4e0a\u7684\u73b0\u6709\u5206\u533a\u3002<\/p>\n

    fdisk -l<\/pre>\n

    \u8fd9\u5c06\u663e\u793a\u6bcf\u4e2a\u9a71\u52a8\u5668\u4e0a\u7684\u5206\u533a\u8868\u3002\u6309\u7f16\u53f7\u6807\u8bc6\u5f53\u524d\u7684\u4ea4\u6362\u5206\u533a\u3002<\/p>\n

    \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u542f\u52a8 fdisk\uff1a<\/p>\n

    fdisk \/dev\/<device name><\/pre>\n

    \u4f8b\u5982\uff1a<\/p>\n

    fdisk \/dev\/sda<\/pre>\n

    \u6b64\u65f6\uff0cfdisk \u662f\u4ea4\u4e92\u65b9\u5f0f\u7684\uff0c\u53ea\u5728\u6307\u5b9a\u7684\u78c1\u76d8\u9a71\u52a8\u5668\u4e0a\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n

    \u4f7f\u7528 fdisk \u7684 p \u5b50\u547d\u4ee4\u9a8c\u8bc1\u78c1\u76d8\u4e0a\u662f\u5426\u6709\u8db3\u591f\u7684\u53ef\u7528\u7a7a\u95f4\u6765\u521b\u5efa\u65b0\u7684\u4ea4\u6362\u5206\u533a\u3002\u786c\u76d8\u4e0a\u7684\u7a7a\u95f4\u4ee5 512 \u5b57\u8282\u7684\u5757\u4ee5\u53ca\u8d77\u59cb\u548c\u7ed3\u675f\u67f1\u9762\u7f16\u53f7\u7684\u5f62\u5f0f\u663e\u793a\uff0c\u56e0\u6b64\u60a8\u53ef\u80fd\u9700\u8981\u505a\u4e00\u4e9b\u8ba1\u7b97\u6765\u786e\u5b9a\u5206\u914d\u5206\u533a\u4e4b\u95f4\u548c\u672b\u5c3e\u7684\u53ef\u7528\u7a7a\u95f4\u3002<\/p>\n

    \u4f7f\u7528 n \u5b50\u547d\u4ee4\u521b\u5efa\u65b0\u7684\u4ea4\u6362\u5206\u533a\u3002fdisk \u4f1a\u95ee\u4f60\u5f00\u59cb\u67f1\u9762\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5b83\u9009\u62e9\u7f16\u53f7\u6700\u4f4e\u7684\u53ef\u7528\u67f1\u9762\u3002\u5982\u679c\u4f60\u60f3\u6539\u53d8\u8fd9\u4e00\u70b9\uff0c\u8f93\u5165\u5f00\u59cb\u67f1\u9762\u7684\u7f16\u53f7\u3002<\/p>\n

    fdisk \u547d\u4ee4\u5141\u8bb8\u4f60\u4ee5\u591a\u79cd\u683c\u5f0f\u8f93\u5165\u5206\u533a\u7684\u5927\u5c0f\uff0c\u5305\u62ec\u6700\u540e\u4e00\u4e2a\u67f1\u9762\u53f7\u6216\u5b57\u8282\u3001KB \u6216 MB \u7684\u5927\u5c0f\u3002\u4f8b\u5982\uff0c\u952e\u5165 4000M \uff0c\u8fd9\u5c06\u5728\u65b0\u5206\u533a\u4e0a\u63d0\u4f9b\u5927\u7ea6 4GB \u7684\u7a7a\u95f4\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\u3002<\/p>\n

    \u4f7f\u7528 p \u5b50\u547d\u4ee4\u6765\u9a8c\u8bc1\u5206\u533a\u662f\u5426\u6309\u7167\u6307\u5b9a\u7684\u65b9\u5f0f\u521b\u5efa\u7684\u3002\u8bf7\u6ce8\u610f\uff0c\u9664\u975e\u4f7f\u7528\u7ed3\u675f\u67f1\u9762\u7f16\u53f7\uff0c\u5426\u5219\u5206\u533a\u53ef\u80fd\u4e0e\u4f60\u6307\u5b9a\u7684\u4e0d\u5b8c\u5168\u76f8\u540c\u3002fdisk \u547d\u4ee4\u53ea\u80fd\u5728\u6574\u4e2a\u67f1\u9762\u4e0a\u589e\u91cf\u7684\u5206\u914d\u78c1\u76d8\u7a7a\u95f4\uff0c\u56e0\u6b64\u4f60\u7684\u5206\u533a\u53ef\u80fd\u6bd4\u4f60\u6307\u5b9a\u7684\u7a0d\u5c0f\u6216\u7a0d\u5927\u3002\u5982\u679c\u5206\u533a\u4e0d\u662f\u60a8\u60f3\u8981\u7684\uff0c\u4f60\u53ef\u4ee5\u5220\u9664\u5b83\u5e76\u91cd\u65b0\u521b\u5efa\u5b83\u3002<\/p>\n

    \u73b0\u5728\u6307\u5b9a\u65b0\u5206\u533a\u662f\u4ea4\u6362\u5206\u533a\u4e86 \u3002\u5b50\u547d\u4ee4 t \u5141\u8bb8\u4f60\u6307\u5b9a\u5b9a\u5206\u533a\u7684\u7c7b\u578b\u3002\u6240\u4ee5\u8f93\u5165 t\uff0c\u6307\u5b9a\u5206\u533a\u53f7\uff0c\u5f53\u5b83\u8981\u6c42\u5341\u516d\u8fdb\u5236\u5206\u533a\u7c7b\u578b\u65f6\uff0c\u8f93\u5165 82\uff0c\u8fd9\u662f Linux \u4ea4\u6362\u5206\u533a\u7c7b\u578b\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\u3002<\/p>\n

    \u5f53\u4f60\u5bf9\u521b\u5efa\u7684\u5206\u533a\u611f\u5230\u6ee1\u610f\u65f6\uff0c\u4f7f\u7528 w \u5b50\u547d\u4ee4\u5c06\u65b0\u7684\u5206\u533a\u8868\u5199\u5165\u78c1\u76d8\u3002fdisk \u7a0b\u5e8f\u5c06\u9000\u51fa\uff0c\u5e76\u5728\u5b8c\u6210\u4fee\u6539\u540e\u7684\u5206\u533a\u8868\u7684\u7f16\u5199\u540e\u8fd4\u56de\u547d\u4ee4\u63d0\u793a\u7b26\u3002\u5f53 fdisk \u5b8c\u6210\u5199\u5165\u65b0\u5206\u533a\u8868\u65f6\uff0c\u4f1a\u6536\u5230\u4ee5\u4e0b\u6d88\u606f:<\/p>\n

    The partition table has been altered!\r\nCalling ioctl() to re-read partition table.\r\nWARNING: Re-reading the partition table failed with error 16: Device or resource busy.\r\nThe kernel still uses the old table.\r\nThe new table will be used at the next reboot.\r\nSyncing disks.<\/pre>\n

    \u6b64\u65f6\uff0c\u4f60\u4f7f\u7528 partprobe \u547d\u4ee4\u5f3a\u5236\u5185\u6838\u91cd\u65b0\u8bfb\u53d6\u5206\u533a\u8868\uff0c\u8fd9\u6837\u5c31\u4e0d\u9700\u8981\u6267\u884c\u91cd\u65b0\u542f\u52a8\u673a\u5668\u3002<\/p>\n

    partprobe<\/pre>\n

    \u4f7f\u7528\u547d\u4ee4 fdisk -l \u5217\u51fa\u5206\u533a\uff0c\u65b0\u4ea4\u6362\u5206\u533a\u5e94\u8be5\u5728\u5217\u51fa\u7684\u5206\u533a\u4e2d\u3002\u786e\u4fdd\u65b0\u7684\u5206\u533a\u7c7b\u578b\u662f \u201cLinux swap\u201d\u3002<\/p>\n

    \u4fee\u6539 \/etc\/fstab \u6587\u4ef6\u4ee5\u6307\u5411\u65b0\u7684\u4ea4\u6362\u5206\u533a\u3002\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

    LABEL=SWAP-sdaX   swap        swap    defaults        0 0<\/pre>\n

    \u5176\u4e2d X \u662f\u5206\u533a\u53f7\u3002\u6839\u636e\u65b0\u4ea4\u6362\u5206\u533a\u7684\u4f4d\u7f6e\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n

    \/dev\/sdaY         swap        swap    defaults        0 0<\/pre>\n

    \u8bf7\u786e\u4fdd\u4f7f\u7528\u6b63\u786e\u7684\u5206\u533a\u53f7\u3002\u73b0\u5728\uff0c\u53ef\u4ee5\u6267\u884c\u521b\u5efa\u4ea4\u6362\u5206\u533a\u7684\u6700\u540e\u4e00\u6b65\u3002\u4f7f\u7528 mkswap \u547d\u4ee4\u5c06\u5206\u533a\u5b9a\u4e49\u4e3a\u4ea4\u6362\u5206\u533a\u3002<\/p>\n

    mkswap \/dev\/sdaY<\/pre>\n

    \u6700\u540e\u4e00\u6b65\u662f\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u7528\u4ea4\u6362\u7a7a\u95f4\uff1a<\/p>\n

    swapon -a<\/pre>\n

    \u4f60\u7684\u65b0\u4ea4\u6362\u5206\u533a\u73b0\u5728\u4e0e\u4ee5\u524d\u5b58\u5728\u7684\u4ea4\u6362\u5206\u533a\u4e00\u8d77\u5728\u7ebf\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528 free \u6216top \u547d\u4ee4\u6765\u9a8c\u8bc1\u8fd9\u4e00\u70b9\u3002<\/p>\n

    \u5728 LVM \u78c1\u76d8\u73af\u5883\u4e2d\u6dfb\u52a0\u4ea4\u6362\u7a7a\u95f4<\/strong><\/span><\/div>\n

    \u5982\u679c\u4f60\u7684\u78c1\u76d8\u4f7f\u7528 LVM \uff0c\u66f4\u6539\u4ea4\u6362\u7a7a\u95f4\u5c06\u76f8\u5f53\u5bb9\u6613\u3002\u540c\u6837\uff0c\u5047\u8bbe\u5f53\u524d\u4ea4\u6362\u5377\u6240\u5728\u7684\u5377\u7ec4\u4e2d\u6709\u53ef\u7528\u7a7a\u95f4\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cLVM \u73af\u5883\u4e2d\u7684 Fedora Linux \u5728\u5b89\u88c5\u8fc7\u7a0b\u5c06\u4ea4\u6362\u5206\u533a\u521b\u5efa\u4e3a\u903b\u8f91\u5377\u3002\u60a8\u53ef\u4ee5\u975e\u5e38\u7b80\u5355\u5730\u589e\u52a0\u4ea4\u6362\u5377\u7684\u5927\u5c0f\u3002<\/p>\n

    \u4ee5\u4e0b\u662f\u5728 LVM \u73af\u5883\u4e2d\u589e\u52a0\u4ea4\u6362\u7a7a\u95f4\u5927\u5c0f\u7684\u6b65\u9aa4:<\/p>\n

      \n
    1. \u5173\u95ed\u6240\u6709\u4ea4\u6362\u7a7a\u95f4\u3002<\/li>\n
    2. \u589e\u52a0\u6307\u5b9a\u7528\u4e8e\u4ea4\u6362\u7a7a\u95f4\u7684\u903b\u8f91\u5377\u7684\u5927\u5c0f\u3002<\/li>\n
    3. \u4e3a\u4ea4\u6362\u7a7a\u95f4\u8c03\u6574\u5927\u5c0f\u7684\u5377\u914d\u7f6e\u3002<\/li>\n
    4. \u542f\u7528\u4ea4\u6362\u7a7a\u95f4\u3002<\/li>\n<\/ol>\n

      \u9996\u5148\uff0c\u8ba9\u6211\u4eec\u4f7f\u7528 lvs \u547d\u4ee4\uff08\u5217\u51fa\u903b\u8f91\u5377\uff09\u6765\u9a8c\u8bc1\u4ea4\u6362\u7a7a\u95f4\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u4ea4\u6362\u7a7a\u95f4\u662f\u5426\u662f\u903b\u8f91\u5377\u3002<\/p>\n

      [root@studentvm1 ~]# lvs\r\n  LV     VG                Attr       LSize  Pool   Origin Data%  Meta%  Move Log Cpy%Sync Convert\r\n  home   fedora_studentvm1 -wi-ao----  2.00g                                                      \r\n  pool00 fedora_studentvm1 twi-aotz--  2.00g               8.17   2.93                            \r\n  root   fedora_studentvm1 Vwi-aotz--  2.00g pool00        8.17                                  \r\n  swap   fedora_studentvm1 -wi-ao----  8.00g                                                      \r\n  tmp    fedora_studentvm1 -wi-ao----  5.00g                                                      \r\n  usr    fedora_studentvm1 -wi-ao---- 15.00g                                                      \r\n  var    fedora_studentvm1 -wi-ao---- 10.00g                                                      \r\n[root@studentvm1 ~]#<\/pre>\n

      \u4f60\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u7684\u4ea4\u6362\u7a7a\u95f4\u5927\u5c0f\u4e3a 8GB\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5e0c\u671b\u5c06 2GB \u6dfb\u52a0\u5230\u6b64\u4ea4\u6362\u5377\u4e2d\u3002\u9996\u5148\uff0c\u505c\u6b62\u73b0\u6709\u7684\u4ea4\u6362\u7a7a\u95f4\u3002\u5982\u679c\u4ea4\u6362\u7a7a\u95f4\u6b63\u5728\u4f7f\u7528\uff0c\u7ec8\u6b62\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\u3002<\/p>\n

      swapoff -a<\/pre>\n

      \u73b0\u5728\u589e\u52a0\u903b\u8f91\u5377\u7684\u5927\u5c0f\u3002<\/p>\n

      [root@studentvm1 ~]# lvextend -L +2G \/dev\/mapper\/fedora_studentvm1-swap\r\n  Size of logical volume fedora_studentvm1\/swap changed from 8.00 GiB (2048 extents) to 10.00 GiB (2560 extents).\r\n  Logical volume fedora_studentvm1\/swap successfully resized.\r\n[root@studentvm1 ~]#<\/pre>\n

      \u8fd0\u884c mkswap \u547d\u4ee4\u5c06\u6574\u4e2a 10GB \u5206\u533a\u53d8\u6210\u4ea4\u6362\u7a7a\u95f4\u3002<\/p>\n

      [root@studentvm1 ~]# mkswap \/dev\/mapper\/fedora_studentvm1-swap\r\nmkswap: \/dev\/mapper\/fedora_studentvm1-swap: warning: wiping old swap signature.\r\nSetting up swapspace version 1, size = 10 GiB (10737414144 bytes)\r\nno label, UUID=3cc2bee0-e746-4b66-aa2d-1ea15ef1574a\r\n[root@studentvm1 ~]#<\/pre>\n

      \u91cd\u65b0\u542f\u7528\u4ea4\u6362\u7a7a\u95f4\u3002<\/p>\n

      [root@studentvm1 ~]# swapon -a\r\n[root@studentvm1 ~]#<\/pre>\n

      \u73b0\u5728\uff0c\u4f7f\u7528 lsblk \u547d\u4ee4\u9a8c\u8bc1\u65b0\u4ea4\u6362\u7a7a\u95f4\u662f\u5426\u5b58\u5728\u3002\u540c\u6837\uff0c\u4e0d\u9700\u8981\u91cd\u65b0\u542f\u52a8\u673a\u5668\u3002<\/p>\n

      [root@studentvm1 ~]# lsblk\r\nNAME                                 MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\r\nsda                                    8:0    0   60G  0 disk\r\n|-sda1                                 8:1    0    1G  0 part \/boot\r\n`-sda2                                 8:2    0   59G  0 part\r\n  |-fedora_studentvm1-pool00_tmeta   253:0    0    4M  0 lvm\r\n  | `-fedora_studentvm1-pool00-tpool 253:2    0    2G  0 lvm\r\n  |   |-fedora_studentvm1-root       253:3    0    2G  0 lvm  \/\r\n  |   `-fedora_studentvm1-pool00     253:6    0    2G  0 lvm\r\n  |-fedora_studentvm1-pool00_tdata   253:1    0    2G  0 lvm\r\n  | `-fedora_studentvm1-pool00-tpool 253:2    0    2G  0 lvm\r\n  |   |-fedora_studentvm1-root       253:3    0    2G  0 lvm  \/\r\n  |   `-fedora_studentvm1-pool00     253:6    0    2G  0 lvm\r\n  |-fedora_studentvm1-swap           253:4    0   10G  0 lvm  [SWAP]\r\n  |-fedora_studentvm1-usr            253:5    0   15G  0 lvm  \/usr\r\n  |-fedora_studentvm1-home           253:7    0    2G  0 lvm  \/home\r\n  |-fedora_studentvm1-var            253:8    0   10G  0 lvm  \/var\r\n  `-fedora_studentvm1-tmp            253:9    0    5G  0 lvm  \/tmp\r\nsr0                                   11:0    1 1024M  0 rom\r\n[root@studentvm1 ~]#<\/pre>\n

      \u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528 swapon -s \u547d\u4ee4\u6216 top\u3001free \u6216\u5176\u4ed6\u51e0\u4e2a\u547d\u4ee4\u6765\u9a8c\u8bc1\u8fd9\u4e00\u70b9\u3002<\/p>\n

      [root@studentvm1 ~]# free\r\n              total        used        free      shared  buff\/cache   available\r\nMem:        4038808      382404     2754072        4152      902332     3404184\r\nSwap:      10485756           0    10485756\r\n[root@studentvm1 ~]#<\/pre>\n

      \u8bf7\u6ce8\u610f\uff0c\u4e0d\u540c\u7684\u547d\u4ee4\u4ee5\u4e0d\u540c\u7684\u5f62\u5f0f\u663e\u793a\u6216\u8981\u6c42\u8f93\u5165\u8bbe\u5907\u6587\u4ef6\u3002\u5728 \/dev \u76ee\u5f55\u4e2d\u8bbf\u95ee\u7279\u5b9a\u8bbe\u5907\u6709\u591a\u79cd\u65b9\u5f0f\u3002\u5728\u6211\u7684\u6587\u7ae0\u5728 Linux \u4e2d\u7ba1\u7406\u8bbe\u5907\u4e2d\u6709\u66f4\u591a\u5173\u4e8e \/dev \u76ee\u5f55\u53ca\u5176\u5185\u5bb9\u8bf4\u660e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

      \u5bfc\u8bfb \u5f53\u4eca\u65e0\u8bba\u4ec0\u4e48\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u6362Swap\u7a7a\u95f4\u662f\u975e\u5e38\u5e38\u89c1\u7684\u3002Linux \u4f7f\u7528\u4ea4\u6362\u7a7a\u95f4\u6765\u589e\u52a0\u4e3b\u673a\u53ef\u7528\u7684\u865a\u62df\u5185\u5b58\u3002\u5b83\u53ef […]<\/p>\n","protected":false},"author":323,"featured_media":127140,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-126597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/126597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=126597"}],"version-history":[{"count":13,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/126597\/revisions"}],"predecessor-version":[{"id":127222,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/126597\/revisions\/127222"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/127140"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=126597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=126597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=126597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}