{"id":252118,"date":"2022-09-16T10:56:03","date_gmt":"2022-09-16T02:56:03","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=252118"},"modified":"2022-09-06T09:57:37","modified_gmt":"2022-09-06T01:57:37","slug":"linux-system-log","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-system-log.html","title":{"rendered":"Linux\u7cfb\u7edf\u65e5\u5fd7\u521d\u5b66\u8005\u6307\u5357"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u51e0\u5341\u5e74\u6765\uff0cLinux \u65e5\u5fd7\u8bb0\u5f55\u4e00\u76f4\u7531 syslogd \u5b88\u62a4\u8fdb\u7a0b\u7ba1\u7406\uff08\u6ce8\u610f rsyslogd \u662f syslogd \u7684\u65b0\u7248\u672c\uff0c\u662f\u4e00\u4e2a\u4e1c\u897f\uff09\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Syslogd \u5c06\u6536\u96c6\u7cfb\u7edf\u8fdb\u7a0b\u548c\u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u5230 \/dev\/log \u7684\u65e5\u5fd7\u6d88\u606f\u3002\u7136\u540e\u5b83\u5c06\u6d88\u606f\u5b9a\u5411\u5230 \/var\/log\/ \u76ee\u5f55\u4e2d\u9002\u5f53\u7684\u7eaf\u6587\u672c\u65e5\u5fd7\u6587\u4ef6\u3002<\/p>\n

Syslogd\u4f1a\u77e5\u9053\u5c06\u6d88\u606f\u53d1\u9001\u5230\u54ea\u91cc\uff0c\u56e0\u4e3a\u6bcf\u6761\u6d88\u606f\u90fd\u5305\u62ec\u5305\u542b\u5143\u6570\u636e\u5b57\u6bb5\uff08\u5305\u62ec\u65f6\u95f4\u6233\u3001\u6d88\u606f\u6765\u6e90\u548c\u4f18\u5148\u7ea7\uff09\u7684\u6807\u5934\u3002<\/p>\n

\"\"<\/p>\n

\u9664\u4e86 Syslogd \u5916\uff0c Linux \u65e5\u5fd7\u8bb0\u5f55\u73b0\u5728\u4e5f\u7531 journald \u7eaa\u5f55\uff0c\u8fd9\u4e2a\u4ee5\u540e\u518d\u4ecb\u7ecd\u3002<\/p>\n

\u4f7f\u7528 syslogd \u8fdb\u884c\u65e5\u5fd7\u8bb0\u5f55<\/strong><\/div>\n

syslogd \u7cfb\u7edf\u4e0a\u7684\u4e8b\u4ef6\u751f\u6210\u7684\u6240\u6709\u65e5\u5fd7\u90fd\u6dfb\u52a0\u5230 \/var\/log\/syslog \u6587\u4ef6\u4e2d\u3002\u4f46\u662f\uff0c\u6839\u636e\u5b83\u4eec\u7684\u6807\u8bc6\u7279\u5f81\uff0c\u5b83\u4eec\u4e5f\u53ef\u80fd\u88ab\u53d1\u9001\u5230\u540c\u4e00\u76ee\u5f55\u4e2d\u7684\u4e00\u4e2a\u6216\u591a\u4e2a\u5176\u4ed6\u6587\u4ef6\u3002<\/p>\n

\u5728 syslogd \u4e2d\uff0c\u6d88\u606f\u7684\u5206\u53d1\u65b9\u5f0f\u7531\u4f4d\u4e8e \/etc\/rsyslog.d\/ \u76ee\u5f55\u4e2d\u7684 50-default.conf \u6587\u4ef6\u7684\u5185\u5bb9\u51b3\u5b9a\u3002<\/p>\n

\u4e0b\u9762\u8fd9\u4e2a 50-default.conf \u7684\u4f8b\u5b50\u8868\u793a cron \u76f8\u5173\u7684\u65e5\u5fd7\u4fe1\u606f\u5c06\u88ab\u5199\u5165 cron.log \u6587\u4ef6\u3002\u661f\u53f7(*)\u544a\u8bc9 syslogd \u53d1\u9001\u5177\u6709\u4efb\u4f55\u4f18\u5148\u7ea7\u7684\u6761\u76ee\uff08\u800c\u4e0d\u662f\u50cf emerg \u6216 err \u8fd9\u6837\u7684\u5355\u4e00\u7ea7\u522b\uff09\uff1a<\/p>\n

\r\ncron.*     \/var\/log\/cron.log\r\n<\/pre>\n

\u5904\u7406 syslogd \u65e5\u5fd7\u6587\u4ef6\u4e0d\u9700\u8981\u4efb\u4f55\u7279\u6b8a\u5de5\u5177\uff0c\u4f8b\u5982 journalctl\u3002\u4f46\u662f\u5982\u679c\u4f60\u60f3\u5728\u8fd9\u65b9\u9762\u505a\u5f97\u5f88\u597d\uff0c\u4f60\u9700\u8981\u77e5\u9053\u6bcf\u4e2a\u6807\u51c6\u65e5\u5fd7\u6587\u4ef6\u4e2d\u4fdd\u5b58\u4e86\u4ec0\u4e48\u6837\u7684\u4fe1\u606f\u3002<\/p>\n

\u4e0b\u8868\u5217\u51fa\u4e86\u6700\u5e38\u89c1\u7684 syslogd \u65e5\u5fd7\u6587\u4ef6\u548c\u4ed6\u4eec\u6240\u7eaa\u5f55\u7684\u4fe1\u606f\u3002<\/p>\n

\u6587\u4ef6\u540d\u5185\u5bb9auth.log\u7cfb\u7edf\u8ba4\u8bc1\u548c\u5b89\u5168\u4e8b\u4ef6boot.log\u542f\u52a8\u76f8\u5173\u4e8b\u4ef6\u7684\u8bb0\u5f55dmesg\u4e0e\u8bbe\u5907\u9a71\u52a8\u7a0b\u5e8f\u76f8\u5173\u7684\u5185\u6838\u73af\u7f13\u51b2\u533a\u4e8b\u4ef6dpkg.log\u8f6f\u4ef6\u5305\u7ba1\u7406\u4e8b\u4ef6kern.logLinux \u5185\u6838\u4e8b\u4ef6syslog\u6240\u6709\u65e5\u5fd7\u7684\u96c6\u5408wtmp\u8ddf\u8e2a\u7528\u6237\u4f1a\u8bdd\uff08\u901a\u8fc7 who \u548c last \u547d\u4ee4\u8bbf\u95ee\uff09<\/p>\n

\u6b64\u5916\uff0c\u4e2a\u522b\u5e94\u7528\u7a0b\u5e8f\u6709\u65f6\u4f1a\u5199\u5165\u81ea\u5df1\u7684\u65e5\u5fd7\u6587\u4ef6\u3002\u60a8\u8fd8\u4f1a\u7ecf\u5e38\u770b\u5230\u4e3a\u63a5\u6536\u5e94\u7528\u7a0b\u5e8f\u6570\u636e\u800c\u521b\u5efa\u7684\u5b8c\u6574\u76ee\u5f55\uff0c\u5982 \/var\/log\/supervisor\/ \u6216 \/var\/log\/mysql\/\u3002<\/p>\n

\u9664\u4e86\u60a8\u4e4b\u524d\u770b\u5230\u7684 * \u7b26\u53f7\uff08\u9002\u7528\u4e8e\u6240\u6709\u4f18\u5148\u7ea7\uff09\u4e4b\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u516b\u4e2a\u4f18\u5148\u7ea7\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\u6765\u63a7\u5236\u65e5\u5fd7\u91cd\u5b9a\u5411\u7684\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n

\u7b49\u7ea7\u63cf\u8ff0debug\u6709\u52a9\u4e8e\u8c03\u8bd5info\u4fe1\u606f\u6027notice\u6b63\u5e38\u60c5\u51b5warn\u9700\u8981\u8b66\u544a\u7684\u60c5\u51b5err\u9519\u8bef\u60c5\u51b5crit\u5371\u6025\u60c5\u51b5alert\u8b66\u62a5\uff0c\u9700\u8981\u7acb\u5373\u91c7\u53d6\u884c\u52a8emerg\u7cfb\u7edf\u65e0\u6cd5\u4f7f\u7528<\/p>\n

\u4f7f\u7528 sysglogd \u7ba1\u7406\u65e5\u5fd7\u6587\u4ef6<\/strong><\/div>\n

\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0csyslogd \u5728\u540e\u53f0\u5904\u7406\u65e5\u5fd7\u8f6e\u6362\u3001\u538b\u7f29\u548c\u5220\u9664\uff0c\u65e0\u9700\u60a8\u63d0\u4f9b\u4efb\u4f55\u64cd\u4f5c\u3002\u4f46\u662f\u4f60\u5e94\u8be5\u77e5\u9053\u5b83\u662f\u5982\u4f55\u5b8c\u6210\u7684\uff0c\u4ee5\u9632\u4f60\u6709\u9700\u8981\u7279\u6b8a\u5904\u7406\u7684\u65e5\u5fd7\u3002<\/p>\n

\u5982\u679c\u60a8\u7684\u65e5\u5fd7\u5fc5\u987b\u7559\u5b58\u8f83\u957f\u65f6\u95f4\uff0c\u90a3\u4e48\u60a8\u80af\u5b9a\u60f3\u77e5\u9053\u5982\u4f55\u901a\u8fc7\u5173\u952e\u6587\u4ef6\u627e\u5230\u81ea\u5df1\u9700\u8981\u7684\u5185\u5bb9\u3002<\/p>\n

\u8981\u67e5\u770blogrotate\u7cfb\u7edf\u7684\u8fd0\u884c\u60c5\u51b5\uff0c\u5217\u51fa \/var\/log\/ \u76ee\u5f55\u7684\u4e00\u4e9b\u5185\u5bb9\u3002\u4f8b\u5982\uff0cauth.log \u6587\u4ef6\u4ee5\u4e09\u79cd\u4e0d\u540c\u7684\u683c\u5f0f\u51fa\u73b0\uff1a<\/p>\n

  • auth.log- \u76ee\u524d\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001\u7684\u7248\u672c\uff0c\u65b0\u7684\u6388\u6743\u4fe1\u606f\u88ab\u5199\u5165\u5176\u4e2d\u3002<\/li>\n
  • auth.log.1-\u6700\u8fd1\u4e00\u6b21\u88ab\u8f6e\u6362\u6389\u7684\u6587\u4ef6\u3002\u5b83\u4ee5\u672a\u538b\u7f29\u7684\u683c\u5f0f\u4fdd\u5b58\uff0c\u4ee5\u4fbf\u5728\u5fc5\u8981\u65f6\u66f4\u5bb9\u6613\u5feb\u901f\u8c03\u7528\u5b83\u3002<\/li>\n
  • auth.log.2.gz- \u5df2\u538b\u7f29\u4ee5\u8282\u7701\u7a7a\u95f4\u7684\u8f83\u65e7\u7684\u65e5\u5fd7\u6587\u4ef6(\u5982\u4e0b\u56fe\u4e2d\u7684.gz\u6269\u5c55\u540d\u7684\u6587\u4ef6)\u3002<\/li>\n

    \"\"<\/p>\n

    7\u5929\u540e\uff0c\u4e0b\u4e00\u6b21\u8f6e\u6362\u65e5\u671f\u5230\u6765\u65f6\uff0cauth.log.2.gz\u4f1a\u66f4\u540d\u4e3aauth.log.3.gz\uff0cauth.log.1\u4f1a\u88ab\u538b\u7f29\u5e76\u66f4\u540d\u4e3aauth.log.2.gz\uff0cauth.log\u5c06\u53d8\u4e3a auth.log.1\uff0c\u5e76\u4e14\u5c06\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u5e76\u547d\u540d\u4e3a auth.log\u3002<\/p>\n

    \u9ed8\u8ba4\u65e5\u5fd7\u8f6e\u6362\u5468\u671f\u5728 \/etc\/logrotate.conf \u6587\u4ef6\u4e2d\u63a7\u5236\u3002\u4e0b\u9762\u914d\u7f6e\u4e2d\u6240\u793a\u7684\u503c\u8868\u793a\u5728\u4e00\u5468\u540e\u8f6e\u6362\u6587\u4ef6\uff0c\u5e76\u5728\u56db\u5468\u540e\u5220\u9664\u65e7\u6587\u4ef6\u3002<\/p>\n

    \r\n# rotate log files weekly\r\nweekly\r\n# keep 4 weeks worth of backlogs\r\nrotate 4\r\n# create new (empty) log files after rotating old ones\r\ncreate\r\n# packages drop log rotation information into this directory\r\ninclude \/etc\/logrotate<\/pre>\n

    \/etc\/logrotate.d\/ \u76ee\u5f55\u8fd8\u5305\u542b\u81ea\u5b9a\u4e49\u914d\u7f6e\u6587\u4ef6\uff0c\u7528\u4e8e\u7ba1\u7406\u5355\u4e2a\u670d\u52a1\u6216\u5e94\u7528\u7a0b\u5e8f\u7684\u65e5\u5fd7\u8f6e\u6362\u3002\u5217\u51fa\u8be5\u76ee\u5f55\u7684\u5185\u5bb9\uff0c\u60a8\u4f1a\u770b\u5230\u4ee5\u4e0b\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n

    \r\n$ ls \/etc\/logrotate.d\/\r\n\r\napache2 apt dpkg mysql-server\r\nrsyslog\r\nsamba\r\nunattended-upgrade<\/pre>\n

    \u60a8\u53ef\u4ee5\u67e5\u770b\u4ed6\u4eec\u7684\u5185\u5bb9\u4ee5\u4e86\u89e3\u4ed6\u4eec\u5bf9\u65e5\u5fd7\u8f6e\u6362\u7684\u914d\u7f6e\u3002<\/p>\n

    \u5982\u4f55\u8bfb\u53d6\u7cfb\u7edf\u65e5\u5fd7\u6587\u4ef6<\/strong><\/div>\n

    \u5e94\u8be5\u5b8c\u5168\u907f\u514d\u4f7f\u7528 cat \u3002\u5b83\u53ea\u4f1a\u5728\u60a8\u7684\u5c4f\u5e55\u4e0a\u663e\u793a\u6570\u5343\u884c\u5185\u5bb9\u3002<\/p>\n

    \u6211\u5efa\u8bae\u4f7f\u7528 grep \u8fc7\u6ee4\u6587\u4ef6\u4e2d\u7684\u6587\u672c\u3002<\/p>\n

    \u4f7f\u7528 tail -f \u547d\u4ee4\u53ef\u4ee5\u5b9e\u65f6\u8bfb\u53d6\u5f53\u524d\u65e5\u5fd7\u6587\u4ef6\u3002\u60a8\u53ef\u4ee5\u5c06\u5176\u4e0e grep \u7ed3\u5408\u4f7f\u7528\u4ee5\u8fc7\u6ee4\u6240\u9700\u7684\u6587\u672c\u3002<\/p>\n

    \u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u8bbf\u95ee\u65e7\u7684\u538b\u7f29\u65e5\u5fd7\u3002\u60a8\u53ef\u80fd\u603b\u662f\u5148\u89e3\u538b\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528 grep\u3001less \u548c\u5176\u4ed6\u547d\u4ee4\u6765\u8bfb\u53d6\u5176\u5185\u5bb9\uff0c\u4f46\u662f\uff0c\u6709\u66f4\u597d\u7684\u9009\u62e9\u3002\u6709 zcat\u3001zless \u7b49 z \u547d\u4ee4\u53ef\u8ba9\u60a8\u5904\u7406\u538b\u7f29\u6587\u4ef6\u800c\u65e0\u9700\u5148\u89e3\u538b\u5b83\u4eec\u3002<\/p>\n

    \u4e00\u4e2a\u65e5\u5fd7\u5206\u6790\u7684\u5b9e\u4f8b<\/strong><\/div>\n

    \u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u5b83\u5c06\u901a\u8fc7 auth.log \u6587\u4ef6\u641c\u7d22\u767b\u5f55\u5c1d\u8bd5\u5931\u8d25\u7684\u8bc1\u636e\u3002\u641c\u7d22\u5355\u8bcd failure \u5c06\u8fd4\u56de\u5305\u542b\u77ed\u8bed authentication failure \u7684\u6240\u6709\u884c<\/p>\n

    \u5076\u5c14\u68c0\u67e5\u4e00\u4e0b\u53ef\u4ee5\u5e2e\u52a9\u60a8\u53d1\u73b0\u901a\u8fc7\u731c\u6d4b\u6b63\u786e\u5bc6\u7801\u6765\u767b\u5f55\u4f60\u7684Linux\u7cfb\u7edf\u7684\u4f01\u56fe\u3002\u7ba1\u7406\u5458\u53ef\u80fd\u5c06\u5bc6\u7801\u8f93\u9519\u4e00\u4e24\u6b21\uff0c\u4f46\u592a\u591a\u6b21\u7684\u5bc6\u7801\u8f93\u5165\u9519\u8bef\u5c31\u9700\u8981\u8b66\u60d5\u8d77\u6765\uff1a<\/p>\n

    \r\n\u60a8\u53ef\u4ee5\u67e5\u770b\u4ed6\u4eec\u7684\u5185\u5bb9\u4ee5\u4e86\u89e3\u4ed6\u4eec\u5bf9\u65e5\u5fd7\u8f6e\u6362\u7684\u914d\u7f6e\u3002\r\n\r\n\u5982\u4f55\u8bfb\u53d6\u7cfb\u7edf\u65e5\u5fd7\u6587\u4ef6\r\n\u5e94\u8be5\u5b8c\u5168\u907f\u514d\u4f7f\u7528 cat \u3002\u5b83\u53ea\u4f1a\u5728\u60a8\u7684\u5c4f\u5e55\u4e0a\u663e\u793a\u6570\u5343\u884c\u5185\u5bb9\u3002\r\n\r\n\u6211\u5efa\u8bae\u4f7f\u7528 grep \u8fc7\u6ee4\u6587\u4ef6\u4e2d\u7684\u6587\u672c\u3002\r\n\r\n\u4f7f\u7528 tail -f \u547d\u4ee4\u53ef\u4ee5\u5b9e\u65f6\u8bfb\u53d6\u5f53\u524d\u65e5\u5fd7\u6587\u4ef6\u3002\u60a8\u53ef\u4ee5\u5c06\u5176\u4e0e grep \u7ed3\u5408\u4f7f\u7528\u4ee5\u8fc7\u6ee4\u6240\u9700\u7684\u6587\u672c\u3002\r\n\r\n\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u8bbf\u95ee\u65e7\u7684\u538b\u7f29\u65e5\u5fd7\u3002\u60a8\u53ef\u80fd\u603b\u662f\u5148\u89e3\u538b\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528 grep\u3001less \u548c\u5176\u4ed6\u547d\u4ee4\u6765\u8bfb\u53d6\u5176\u5185\u5bb9\uff0c\u4f46\u662f\uff0c\u6709\u66f4\u597d\u7684\u9009\u62e9\u3002\u6709 zcat\u3001zless \u7b49 z \u547d\u4ee4\u53ef\u8ba9\u60a8\u5904\u7406\u538b\u7f29\u6587\u4ef6\u800c\u65e0\u9700\u5148\u89e3\u538b\u5b83\u4eec\u3002\r\n\r\n\u4e00\u4e2a\u65e5\u5fd7\u5206\u6790\u7684\u5b9e\u4f8b\r\n\u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u5b83\u5c06\u901a\u8fc7 auth.log \u6587\u4ef6\u641c\u7d22\u767b\u5f55\u5c1d\u8bd5\u5931\u8d25\u7684\u8bc1\u636e\u3002\u641c\u7d22\u5355\u8bcd failure \u5c06\u8fd4\u56de\u5305\u542b\u77ed\u8bed authentication failure \u7684\u6240\u6709\u884c\r\n\r\n\u5076\u5c14\u68c0\u67e5\u4e00\u4e0b\u53ef\u4ee5\u5e2e\u52a9\u60a8\u53d1\u73b0\u901a\u8fc7\u731c\u6d4b\u6b63\u786e\u5bc6\u7801\u6765\u767b\u5f55\u4f60\u7684Linux\u7cfb\u7edf\u7684\u4f01\u56fe\u3002\u7ba1\u7406\u5458\u53ef\u80fd\u5c06\u5bc6\u7801\u8f93\u9519\u4e00\u4e24\u6b21\uff0c\u4f46\u592a\u591a\u6b21\u7684\u5bc6\u7801\u8f93\u5165\u9519\u8bef\u5c31\u9700\u8981\u8b66\u60d5\u8d77\u6765\uff1a<\/pre>\n

    \u5982\u60a8\u6240\u77e5\uff0cgrep \u4e3a\u60a8\u5b8c\u6210\u4e86\u8fd9\u9879\u5de5\u4f5c\uff0c\u4f46\u60a8\u4ece\u7ed3\u679c\u4e2d\u53ea\u80fd\u770b\u5230\u8eab\u4efd\u9a8c\u8bc1\u5931\u8d25\u3002\u8981\u662f\u80fd\u77e5\u9053\u6d89\u53ca\u8c01\u7684\u5e10\u6237\u4f1a\u66f4\u6709\u7528\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u544a\u8bc9\u5b83\u5305\u542b\u5339\u914d\u4e4b\u524d\u548c\u4e4b\u540e\u7684\u884c\u6765\u6269\u5c55 grep \u8fd4\u56de\u7684\u7ed3\u679c\u3002<\/p>\n

    \u6b64\u793a\u4f8b\u6253\u5370\u5339\u914d\u53ca\u5176\u4e4b\u524d\u548c\u4e4b\u540e\u76841\u884c\u3002\u5b83\u544a\u8bc9\u4f60\u6709\u4eba\u4f7f\u7528\u5e10\u6237 ubuntu \u5c1d\u8bd5\u4f7f\u7528 su\uff08\u5207\u6362\u7528\u6237\uff09\u767b\u5f55 root \u5e10\u6237\u5931\u8d25\uff1a<\/p>\n

    \r\n$ cat \/var\/log\/auth.log | grep -C1 failure\r\n\r\nSep  4 22:43:43 hongdaokeji su: pam_unix(su:auth): Couldn't open \/etc\/securetty: No such file or directory\r\nSep  4 22:43:43 hongdaokeji su: pam_unix(su:auth): authentication failure; logname=ubuntu uid=1000 euid=0 tty=pts\/2 ruser=ubuntu rhost=  user=root\r\nSep  4 22:43:46 hongdaokeji su: FAILED SU (to root) ubuntu on pts\/2<\/pre>\n","protected":false},"excerpt":{"rendered":"

    Syslogd \u5c06\u6536\u96c6\u7cfb\u7edf\u8fdb\u7a0b\u548c\u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u5230 \/dev\/log \u7684\u65e5\u5fd7\u6d88\u606f\u3002\u7136\u540e\u5b83\u5c06\u6d88\u606f\u5b9a\u5411\u5230 \/var\/l […]<\/p>\n","protected":false},"author":317,"featured_media":242930,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-252118","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\/252118","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\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=252118"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/252118\/revisions"}],"predecessor-version":[{"id":252121,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/252118\/revisions\/252121"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/242930"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=252118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=252118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=252118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}