{"id":106421,"date":"2026-09-17T11:08:34","date_gmt":"2026-09-17T03:08:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/106421.html"},"modified":"2026-09-17T11:08:34","modified_gmt":"2026-09-17T03:08:34","slug":"6%e4%b8%aa%e9%ab%98%e9%a2%91%e5%ae%9e%e7%94%a8%e6%8a%80%e6%9c%af%e8%84%9a%e6%9c%ac%e6%a1%88%e4%be%8b%ef%bc%8c%e8%a6%86%e7%9b%96%e8%bf%90%e7%bb%b4%e4%b8%8e%e5%8a%9e%e5%85%ac%e8%87%aa%e5%8a%a8%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/106421.html","title":{"rendered":"6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09"},"content":{"rendered":"<h2><\/h2>\n<p>\u5728\u65e5\u5e38\u5f00\u53d1\u3001\u8fd0\u7ef4\u3001\u529e\u516c\u5de5\u4f5c\u4e2d&#xff0c;\u5927\u91cf\u91cd\u590d\u64cd\u4f5c\u4f1a\u8017\u8d39\u8d85\u591a\u65f6\u95f4&#xff0c;\u624b\u52a8\u64cd\u4f5c\u4e0d\u4ec5\u6548\u7387\u4f4e&#xff0c;\u8fd8\u5bb9\u6613\u51fa\u73b0\u4eba\u4e3a\u5931\u8bef\u3002\u811a\u672c\u4f5c\u4e3a\u8f7b\u91cf\u5316\u81ea\u52a8\u5316\u5de5\u5177&#xff0c;\u65e0\u9700\u590d\u6742\u5de5\u7a0b\u90e8\u7f72&#xff0c;\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u5b9e\u73b0\u6279\u91cf\u5904\u7406\u3001\u81ea\u52a8\u5de1\u68c0\u3001\u6570\u636e\u7edf\u8ba1\u7b49\u529f\u80fd&#xff0c;\u662f\u6280\u672f\u4eba\u63d0\u6548\u7684\u6838\u5fc3\u5229\u5668\u3002<\/p>\n<p>\u672c\u6587\u7cbe\u9009Python\u3001Shell\u4e24\u5927\u4e3b\u6d41\u811a\u672c\u8bed\u8a00\u76846\u4e2a\u9ad8\u9891\u5b9e\u6218\u6848\u4f8b&#xff0c;\u8986\u76d6\u670d\u52a1\u5668\u8fd0\u7ef4\u3001\u65e5\u5fd7\u5206\u6790\u3001\u6587\u4ef6\u6279\u91cf\u5904\u7406\u3001\u529e\u516c\u81ea\u52a8\u5316\u7b49\u6838\u5fc3\u573a\u666f&#xff0c;\u6240\u6709\u4ee3\u7801\u5b8c\u6574\u53ef\u8fd0\u884c\u3001\u9002\u914d\u65b0\u624b&#xff0c;\u5f00\u7bb1\u5373\u7528&#xff0c;\u5e2e\u52a9\u5927\u5bb6\u7528\u811a\u672c\u66ff\u4ee390%\u91cd\u590d\u5de5\u4f5c\u3002<\/p>\n<h3>\u4e00\u3001Shell \u811a\u672c\u8fd0\u7ef4\u5b9e\u6218\u6848\u4f8b&#xff08;Linux \u5fc5\u5907&#xff09;<\/h3>\n<p>Shell \u811a\u672c\u662f Linux \u8fd0\u7ef4\u7684\u57fa\u7840\u5de5\u5177&#xff0c;\u9002\u914d\u670d\u52a1\u5668\u65e5\u5e38\u5de1\u68c0\u3001\u6587\u4ef6\u6279\u91cf\u64cd\u4f5c\u3001\u670d\u52a1\u76d1\u63a7\u7b49\u573a\u666f&#xff0c;\u8f7b\u91cf\u5316\u3001\u65e0\u4f9d\u8d56\u3001\u8fd0\u884c\u9ad8\u6548&#xff0c;\u662f\u540e\u7aef\u3001\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u7684\u5fc5\u5907\u6280\u80fd\u3002<\/p>\n<h4>\u6848\u4f8b1&#xff1a;\u670d\u52a1\u5668\u4e00\u952e\u8d44\u6e90\u5de1\u68c0\u811a\u672c<\/h4>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u65e5\u5e38\u670d\u52a1\u5668\u5065\u5eb7\u5de1\u68c0\u3001\u5361\u987f\u6392\u67e5\u3001\u5b9a\u65f6\u76d1\u63a7&#xff0c;\u4e00\u952e\u67e5\u770bCPU\u3001\u5185\u5b58\u3001\u78c1\u76d8\u3001\u8d1f\u8f7d\u6838\u5fc3\u6307\u6807&#xff0c;\u66ff\u4ee3\u591a\u6761\u624b\u52a8\u547d\u4ee4\u67e5\u8be2\u3002 \u811a\u672c\u529f\u80fd&#xff1a;\u81ea\u52a8\u83b7\u53d6\u670d\u52a1\u5668\u4e3b\u673a\u4fe1\u606f\u3001\u7cfb\u7edf\u7248\u672c\u3001CPU\u4f7f\u7528\u7387\u3001\u5185\u5b58\u5360\u7528\u3001\u78c1\u76d8\u7a7a\u95f4\u3001\u7cfb\u7edf\u8d1f\u8f7d&#xff0c;\u751f\u6210\u6807\u51c6\u5316\u5de1\u68c0\u62a5\u544a\u3002<\/p>\n<p>#!\/bin\/bash<br \/>\n# server_check.sh \u670d\u52a1\u5668\u8d44\u6e90\u5de1\u68c0\u811a\u672c<br \/>\necho &#034;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; \u670d\u52a1\u5668\u5de1\u68c0\u62a5\u544a &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#034;<br \/>\necho &#034;\u68c0\u67e5\u65f6\u95f4: $(date &#039;&#043;%Y-%m-%d %H:%M:%S&#039;)&#034;<br \/>\necho &#034;\u4e3b\u673a\u540d: $(hostname)&#034;<br \/>\necho &#034;\u7cfb\u7edf\u7248\u672c: $(cat \/etc\/redhat-release 2&gt;\/dev\/null || lsb_release -a 2&gt;\/dev\/null | grep Description | cut -d: -f2 | sed &#039;s\/^ \/\/&#039;)&#034;<br \/>\necho &#034;&#034;<\/p>\n<p># CPU\u4f7f\u7528\u7387\u67e5\u8be2<br \/>\necho &#034;\u3010CPU\u72b6\u6001\u3011&#034;<br \/>\nCPU_USAGE&#061;$(top -bn1 | grep &#034;Cpu(s)&#034; | awk &#039;{print 100-$8}&#039;)<br \/>\necho &#034;CPU\u5f53\u524d\u4f7f\u7528\u7387: ${CPU_USAGE}%&#034;<br \/>\necho &#034;\u7cfb\u7edf\u8d1f\u8f7d: $(uptime | awk -F&#039;load average:&#039; &#039;{print $2}&#039;)&#034;<br \/>\necho &#034;&#034;<\/p>\n<p># \u5185\u5b58\u4f7f\u7528\u7387\u67e5\u8be2<br \/>\necho &#034;\u3010\u5185\u5b58\u72b6\u6001\u3011&#034;<br \/>\nfree -h | awk &#039;\/Mem\/{printf &#034;\u603b\u5185\u5b58: %s  \u5df2\u7528: %s  \u5269\u4f59: %s  \u4f7f\u7528\u7387: %.2f%%\\\\n&#034;,$2,$3,$4,$3\/$2*100}&#039;<br \/>\necho &#034;&#034;<\/p>\n<p># \u78c1\u76d8\u4f7f\u7528\u7387\u67e5\u8be2<br \/>\necho &#034;\u3010\u78c1\u76d8\u72b6\u6001\u3011&#034;<br \/>\ndf -h | grep -v tmpfs | awk &#039;{print $1,&#034;\u603b\u5bb9\u91cf:&#034;$2,&#034;\u5df2\u7528:&#034;$3,&#034;\u5269\u4f59:&#034;$4,&#034;\u4f7f\u7528\u7387:&#034;$5}&#039;<br \/>\necho &#034;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#034;<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5&#xff1a;<\/p>\n<li>\u4fdd\u5b58\u4e3a server_check.sh<\/li>\n<li>\u6388\u6743&#xff1a;chmod &#043;x server_check.sh<\/li>\n<li>\u8fd0\u884c&#xff1a;.\/server_check.sh<\/li>\n<li>\u53ef\u914d\u7f6e crontab \u5b9a\u65f6\u6bcf\u65e5\u81ea\u52a8\u5de1\u68c0\u3002<\/li>\n<h4>\u6848\u4f8b2&#xff1a;\u6279\u91cf\u521b\u5efa\/\u91cd\u547d\u540d\u6587\u4ef6\u811a\u672c<\/h4>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u9879\u76ee\u521d\u59cb\u5316\u6279\u91cf\u5efa\u76ee\u5f55\u3001\u6279\u91cf\u4fee\u6539\u6587\u4ef6\u540e\u7f00\u3001\u7edf\u4e00\u89c4\u8303\u6587\u4ef6\u547d\u540d&#xff0c;\u544a\u522b\u624b\u52a8\u9010\u4e2a\u64cd\u4f5c\u3002 \u811a\u672c\u529f\u80fd&#xff1a;\u6279\u91cf\u751f\u6210\u6709\u5e8f\u6587\u4ef6\u5939\u3001\u6279\u91cf\u4fee\u6539\u5f53\u524d\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u540e\u7f00&#xff08;\u5982.txt\u6539.log&#xff09;\u3002<\/p>\n<p>#!\/bin\/bash<br \/>\n# file_batch.sh \u6587\u4ef6\u6279\u91cf\u5904\u7406\u811a\u672c<\/p>\n<p># 1. \u6279\u91cf\u521b\u5efa10\u4e2a\u6709\u5e8f\u76ee\u5f55 dir1-dir10<br \/>\necho &#034;\u5f00\u59cb\u6279\u91cf\u521b\u5efa\u76ee\u5f55&#8230;&#034;<br \/>\nfor i in {1..10}<br \/>\ndo<br \/>\nmkdir -p dir$i<br \/>\necho &#034;\u521b\u5efa\u6210\u529f&#xff1a;dir$i&#034;<br \/>\ndone<\/p>\n<p># 2. \u6279\u91cf\u5c06\u6240\u6709txt\u6587\u4ef6\u6539\u4e3alog\u6587\u4ef6<br \/>\necho &#034;\u5f00\u59cb\u6279\u91cf\u4fee\u6539\u6587\u4ef6\u540e\u7f00&#8230;&#034;<br \/>\nrename &#039;s\/\\\\.txt\/\\\\.log\/&#039; *.txt 2&gt;\/dev\/null<br \/>\necho &#034;\u6587\u4ef6\u540e\u7f00\u6279\u91cf\u4fee\u6539\u5b8c\u6210&#034;<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5&#xff1a;\u6388\u6743\u8fd0\u884c\u5373\u53ef&#xff0c;\u53ef\u6839\u636e\u9700\u6c42\u4fee\u6539\u5faa\u73af\u6570\u91cf\u3001\u6587\u4ef6\u540e\u7f00\u89c4\u5219\u3002<\/p>\n<h4>\u6848\u4f8b3&#xff1a;Nginx \u5f02\u5e38IP\u81ea\u52a8\u5c4f\u853d\u811a\u672c<\/h4>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u9632\u62a4\u670d\u52a1\u5668CC\u3001DOS\u653b\u51fb&#xff0c;\u81ea\u52a8\u76d1\u63a7Nginx\u65e5\u5fd7&#xff0c;\u62e6\u622a\u9ad8\u9891\u5f02\u5e38\u8bbf\u95eeIP&#xff0c;\u4fdd\u969c\u670d\u52a1\u7a33\u5b9a\u3002 \u811a\u672c\u529f\u80fd&#xff1a;\u7edf\u8ba1\u77ed\u65f6\u95f4\u5185\u9ad8\u9891\u8bbf\u95eeIP&#xff0c;\u81ea\u52a8\u901a\u8fc7\u9632\u706b\u5899\u5c4f\u853d\u6076\u610fIP&#xff0c;\u907f\u514d\u6076\u610f\u8bf7\u6c42\u5360\u7528\u670d\u52a1\u5668\u8d44\u6e90\u3002<\/p>\n<p>#!\/bin\/bash<br \/>\n# ban_ip.sh \u5f02\u5e38IP\u81ea\u52a8\u5c4f\u853d\u811a\u672c<br \/>\nLOG_FILE&#061;&#034;\/var\/log\/nginx\/access.log&#034;<br \/>\n# \u8bbe\u5b9a\u8bbf\u95ee\u9608\u503c&#xff0c;1\u5206\u949f\u8d85\u8fc7100\u6b21\u5224\u5b9a\u4e3a\u5f02\u5e38<br \/>\nLIMIT&#061;100<br \/>\nTIME&#061;$(date -d &#039;1 minute ago&#039; &#043;&#039;%d\/%b\/%Y:%H:%M&#039;)<\/p>\n<p># \u7b5b\u90091\u5206\u949f\u5185\u9ad8\u9891\u8bbf\u95eeIP<br \/>\nawk -v time&#061;&#034;$TIME&#034; &#039;$4&gt;time {print $1}&#039; $LOG_FILE | sort | uniq -c | awk -v limit&#061;&#034;$LIMIT&#034; &#039;$1&gt;limit {print $2}&#039; &gt; \/tmp\/ban_ip.txt<\/p>\n<p># \u5c4f\u853d\u5f02\u5e38IP<br \/>\nfor ip in $(cat \/tmp\/ban_ip.txt)<br \/>\ndo<br \/>\n# \u907f\u514d\u91cd\u590d\u5c4f\u853d<br \/>\niptables -L | grep $ip || iptables -A INPUT -s $ip -j DROP<br \/>\necho &#034;\u5df2\u5c4f\u853d\u6076\u610f\u653b\u51fbIP&#xff1a;$ip&#034;<br \/>\ndone<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5&#xff1a;\u9002\u914dCentOS\u7cfb\u7edf&#xff0c;\u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1\u6bcf\u5206\u949f\u6267\u884c\u4e00\u6b21&#xff0c;\u5b9e\u73b0\u5b9e\u65f6\u9632\u62a4\u3002<\/p>\n<h3>\u4e8c\u3001Python \u811a\u672c\u81ea\u52a8\u5316\u5b9e\u6218\u6848\u4f8b&#xff08;\u901a\u7528\u5168\u80fd&#xff09;<\/h3>\n<p>Python \u811a\u672c\u8bed\u6cd5\u7b80\u6d01\u3001\u5e93\u751f\u6001\u4e30\u5bcc&#xff0c;\u4e0d\u4ec5\u9002\u914d\u670d\u52a1\u5668\u8fd0\u7ef4&#xff0c;\u8fd8\u80fd\u5b9e\u73b0\u529e\u516c\u81ea\u52a8\u5316\u3001\u6570\u636e\u5904\u7406\u3001\u672c\u5730\u5de5\u5177\u5f00\u53d1&#xff0c;\u662f\u5168\u573a\u666f\u63d0\u6548\u795e\u5668&#xff0c;\u65b0\u624b\u4e0a\u624b\u95e8\u69db\u6781\u4f4e\u3002<\/p>\n<h4>\u6848\u4f8b4&#xff1a;Python \u670d\u52a1\u5668\u8d44\u6e90\u76d1\u63a7\u811a\u672c<\/h4>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u8de8\u5e73\u53f0\u670d\u52a1\u5668\u76d1\u63a7\u3001\u672c\u5730\u7535\u8111\u8d44\u6e90\u67e5\u770b&#xff0c;\u652f\u6301Windows\/Linux&#xff0c;\u53ef\u62d3\u5c55\u90ae\u4ef6\u3001\u4f01\u4e1a\u5fae\u4fe1\u544a\u8b66\u3002 \u4f9d\u8d56\u5b89\u88c5&#xff1a;pip install psutil<\/p>\n<p>import psutil<br \/>\nimport time<\/p>\n<p>def get_server_status():<br \/>\n    print(&#034;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; Python\u670d\u52a1\u5668\u76d1\u63a7 &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#034;)<br \/>\n    print(f&#034;\u91c7\u96c6\u65f6\u95f4: {time.strftime(&#039;%Y-%m-%d %H:%M:%S&#039;)}&#034;)<br \/>\n    # CPU<br \/>\n    cpu_percent &#061; psutil.cpu_percent(interval&#061;1)<br \/>\n    print(f&#034;CPU\u4f7f\u7528\u7387&#xff1a;{cpu_percent}%&#034;)<br \/>\n    # \u5185\u5b58<br \/>\n    mem &#061; psutil.virtual_memory()<br \/>\n    print(f&#034;\u5185\u5b58\u603b\u5bb9\u91cf&#xff1a;{mem.total\/1024\/1024\/1024:.2f}G&#xff0c;\u5df2\u7528&#xff1a;{mem.used\/1024\/1024\/1024:.2f}G&#xff0c;\u4f7f\u7528\u7387&#xff1a;{mem.percent}%&#034;)<br \/>\n    # \u78c1\u76d8<br \/>\n    disk &#061; psutil.disk_usage(&#039;\/&#039;)<br \/>\n    print(f&#034;\u78c1\u76d8\u603b\u5bb9\u91cf&#xff1a;{disk.total\/1024\/1024\/1024:.2f}G&#xff0c;\u5df2\u7528&#xff1a;{disk.used\/1024\/1024\/1024:.2f}G&#xff0c;\u4f7f\u7528\u7387&#xff1a;{disk.percent}%&#034;)<br \/>\n    print(&#034;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#034;)<br \/>\n    # \u544a\u8b66\u5224\u65ad<br \/>\n    if cpu_percent &gt; 80 or mem.percent &gt; 85 or disk.percent &gt; 90:<br \/>\n        print(&#034;\u26a0\ufe0f \u8d44\u6e90\u544a\u8b66&#xff1a;\u670d\u52a1\u5668\u8d44\u6e90\u5360\u7528\u8fc7\u9ad8&#xff01;&#034;)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    get_server_status()<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5&#xff1a;\u76f4\u63a5\u8fd0\u884c\u811a\u672c&#xff1b;\u53ef\u589e\u52a0\u5faa\u73af\u5b9a\u65f6\u91c7\u96c6&#xff0c;\u5bf9\u63a5Webhook\u63a8\u9001\u544a\u8b66\u6d88\u606f\u3002<\/p>\n<h4>\u6848\u4f8b5&#xff1a;\u6279\u91cf\u8bfb\u53d6Excel\u5e76\u6c47\u603b\u6570\u636e\u811a\u672c<\/h4>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u591aExcel\u62a5\u8868\u5408\u5e76\u3001\u6570\u636e\u6c47\u603b\u7edf\u8ba1&#xff0c;\u8d22\u52a1\u3001\u8fd0\u8425\u3001\u6d4b\u8bd5\u5e38\u7528&#xff0c;\u4e0d\u7528\u624b\u52a8\u590d\u5236\u7c98\u8d34\u3002 \u4f9d\u8d56\u5b89\u88c5&#xff1a;pip install pandas openpyxl<\/p>\n<p>import pandas as pd<br \/>\nimport os<\/p>\n<p>def merge_excel(folder_path):<br \/>\n    all_data &#061; []<br \/>\n    # \u904d\u5386\u6587\u4ef6\u5939\u4e0b\u6240\u6709xlsx\u6587\u4ef6<br \/>\n    for file in os.listdir(folder_path):<br \/>\n        if file.endswith(&#034;.xlsx&#034;) and not file.startswith(&#034;~&#034;):<br \/>\n            file_full &#061; os.path.join(folder_path, file)<br \/>\n            df &#061; pd.read_excel(file_full)<br \/>\n            all_data.append(df)<br \/>\n    # \u5408\u5e76\u5168\u90e8\u8868\u683c<br \/>\n    result &#061; pd.concat(all_data, ignore_index&#061;True)<br \/>\n    result.to_excel(&#034;\u6c47\u603b\u7ed3\u679c.xlsx&#034;, index&#061;False)<br \/>\n    print(f&#034;\u5408\u5e76\u5b8c\u6210&#xff01;\u4e00\u5171\u5408\u5e76 {len(all_data)} \u4e2a\u6587\u4ef6&#xff0c;\u8f93\u51fa&#xff1a;\u6c47\u603b\u7ed3\u679c.xlsx&#034;)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    # \u4fee\u6539\u4e3a\u4f60\u7684Excel\u6587\u4ef6\u5939\u8def\u5f84<br \/>\n    merge_excel(&#034;.\/excel_data&#034;)<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5&#xff1a;\u5c06\u6240\u6709\u5f85\u5408\u5e76Excel\u653e\u5165excel_data\u6587\u4ef6\u5939&#xff0c;\u8fd0\u884c\u811a\u672c\u81ea\u52a8\u751f\u6210\u6c47\u603b\u8868\u3002<\/p>\n<h4>\u6848\u4f8b6&#xff1a;\u65e5\u5fd7\u5173\u952e\u8bcd\u68c0\u7d22\u811a\u672c<\/h4>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u6392\u67e5\u7ebf\u4e0a\u6545\u969c&#xff0c;\u6279\u91cf\u626b\u63cf\u65e5\u5fd7\u6587\u4ef6&#xff0c;\u5feb\u901f\u7b5b\u9009\u62a5\u9519\u5173\u952e\u8bcd&#xff0c;\u63d0\u53d6\u5f02\u5e38\u884c\u5e76\u4fdd\u5b58\u7ed3\u679c\u3002<\/p>\n<p>def search_log(log_path, keyword):<br \/>\n    result_lines &#061; []<br \/>\n    with open(log_path, &#034;r&#034;, encoding&#061;&#034;utf-8&#034;, errors&#061;&#034;ignore&#034;) as f:<br \/>\n        for line_num, line in enumerate(f, start&#061;1):<br \/>\n            if keyword in line:<br \/>\n                result_lines.append(f&#034;\u884c\u53f7{line_num}: {line.strip()}&#034;)<br \/>\n    # \u5199\u5165\u7ed3\u679c\u6587\u4ef6<br \/>\n    with open(&#034;log_search_result.txt&#034;, &#034;w&#034;, encoding&#061;&#034;utf-8&#034;) as out:<br \/>\n        out.write(&#034;\\\\n&#034;.join(result_lines))<br \/>\n    print(f&#034;\u68c0\u7d22\u5b8c\u6210&#xff0c;\u627e\u5230 {len(result_lines)} \u6761\u5339\u914d\u8bb0\u5f55&#xff0c;\u5df2\u4fdd\u5b58\u81f3 log_search_result.txt&#034;)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    # \u4fee\u6539\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84\u548c\u8981\u641c\u7d22\u7684\u5173\u952e\u8bcd<br \/>\n    search_log(&#034;.\/app.log&#034;, &#034;ERROR&#034;)<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5&#xff1a;\u4fee\u6539\u65e5\u5fd7\u8def\u5f84\u4e0e\u68c0\u7d22\u5173\u952e\u8bcd&#xff0c;\u5e38\u7528\u4e8e\u5feb\u901f\u5b9a\u4f4d\u7a0b\u5e8f\u62a5\u9519\u3002<\/p>\n<h3>\u4e09\u3001\u811a\u672c\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879<\/h3>\n<li>\u6743\u9650\u7ba1\u63a7&#xff1a;\u670d\u52a1\u5668\u811a\u672c\u5c3d\u91cf\u6700\u5c0f\u6743\u9650\u8fd0\u884c&#xff0c;\u5c4f\u853dIP\u3001\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e\u7c7b\u811a\u672c\u52a1\u5fc5\u505a\u597d\u6d4b\u8bd5&#xff0c;\u907f\u514d\u8bef\u64cd\u4f5c\u3002<\/li>\n<li>\u5b9a\u65f6\u4efb\u52a1&#xff1a;Shell crontab\u3001Python\u5b9a\u65f6\u811a\u672c&#xff0c;\u505a\u597d\u65e5\u5fd7\u8f93\u51fa&#xff0c;\u65b9\u4fbf\u6392\u67e5\u811a\u672c\u6267\u884c\u5f02\u5e38\u3002<\/li>\n<li>\u517c\u5bb9\u6027&#xff1a;Shell\u811a\u672c\u5728CentOS\u3001Ubuntu\u4e4b\u95f4\u5b58\u5728\u5c11\u91cf\u547d\u4ee4\u5dee\u5f02&#xff0c;\u4e0a\u7ebf\u524d\u5148\u5728\u6d4b\u8bd5\u73af\u5883\u9a8c\u8bc1&#xff1b;Python\u6ce8\u610f\u7248\u672c\u548c\u7b2c\u4e09\u65b9\u5e93\u4f9d\u8d56\u3002<\/li>\n<li>\u5907\u4efd\u4f18\u5148&#xff1a;\u6d89\u53ca\u6279\u91cf\u4fee\u6539\u6587\u4ef6\u7684\u811a\u672c&#xff0c;\u6267\u884c\u524d\u5148\u5907\u4efd\u539f\u59cb\u6570\u636e&#xff0c;\u9632\u6b62\u6570\u636e\u4e22\u5931\u3002<\/li>\n<h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<p>\u811a\u672c\u81ea\u52a8\u5316\u662f\u6280\u672f\u4eba\u5458\u7684\u6838\u5fc3\u63d0\u6548\u624b\u6bb5&#xff0c;Shell\u64c5\u957fLinux\u670d\u52a1\u5668\u8fd0\u7ef4\u573a\u666f&#xff0c;Python\u4f18\u52bf\u5728\u4e8e\u8de8\u5e73\u53f0\u3001\u6570\u636e\u5904\u7406\u4e0e\u529e\u516c\u81ea\u52a8\u5316\u3002\u4e0a\u9762\u8fd9\u4e9b\u811a\u672c\u8986\u76d6\u4e86\u7edd\u5927\u591a\u6570\u65e5\u5e38\u5de5\u4f5c\u573a\u666f&#xff0c;\u5927\u5bb6\u53ef\u4ee5\u57fa\u4e8e\u57fa\u7840\u4ee3\u7801\u6309\u9700\u4fee\u6539\u903b\u8f91&#xff0c;\u6269\u5c55\u544a\u8b66\u3001\u90ae\u4ef6\u63a8\u9001\u3001\u6570\u636e\u6301\u4e45\u5316\u7b49\u80fd\u529b&#xff0c;\u628a\u91cd\u590d\u7684\u4eba\u5de5\u5de5\u4f5c\u4ea4\u7ed9\u7a0b\u5e8f\u81ea\u52a8\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u65e5\u5e38\u5f00\u53d1\u3001\u8fd0\u7ef4\u3001\u529e\u516c\u5de5\u4f5c\u4e2d&#xff0c;\u5927\u91cf\u91cd\u590d\u64cd\u4f5c\u4f1a\u8017\u8d39\u8d85\u591a\u65f6\u95f4&#xff0c;\u624b\u52a8\u64cd\u4f5c\u4e0d\u4ec5\u6548\u7387\u4f4e&#xff0c;\u8fd8\u5bb9\u6613\u51fa\u73b0\u4eba\u4e3a\u5931\u8bef\u3002\u811a\u672c\u4f5c\u4e3a\u8f7b\u91cf\u5316\u81ea\u52a8\u5316\u5de5\u5177&#xff0c;\u65e0\u9700\u590d\u6742\u5de5\u7a0b\u90e8\u7f72&#xff0c;\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u5b9e\u73b0\u6279\u91cf\u5904\u7406\u3001\u81ea\u52a8\u5de1\u68c0\u3001\u6570\u636e\u7edf\u8ba1\u7b49\u529f\u80fd&#xff0c;\u662f\u6280\u672f\u4eba\u63d0\u6548\u7684\u6838\u5fc3\u5229\u5668\u3002\u672c\u6587\u7cbe\u9009Python\u3001Shell\u4e24\u5927\u4e3b\u6d41\u811a\u672c\u8bed\u8a00\u76846\u4e2a\u9ad8\u9891\u5b9e\u6218\u6848\u4f8b&#xff0c;\u8986\u76d6\u670d\u52a1\u5668\u8fd0\u7ef4\u3001\u65e5\u5fd7\u5206\u6790\u3001\u6587\u4ef6\u6279\u91cf\u5904\u7406\u3001\u529e\u516c\u81ea\u52a8\u5316\u7b49\u6838\u5fc3\u573a\u666f&#xff0c;\u6240\u6709\u4ee3\u7801\u5b8c\u6574\u53ef\u8fd0\u884c\u3001<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81],"topic":[],"class_list":["post-106421","post","type-post","status-publish","format-standard","hentry","category-server","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09 - \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\/106421.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u65e5\u5e38\u5f00\u53d1\u3001\u8fd0\u7ef4\u3001\u529e\u516c\u5de5\u4f5c\u4e2d&#xff0c;\u5927\u91cf\u91cd\u590d\u64cd\u4f5c\u4f1a\u8017\u8d39\u8d85\u591a\u65f6\u95f4&#xff0c;\u624b\u52a8\u64cd\u4f5c\u4e0d\u4ec5\u6548\u7387\u4f4e&#xff0c;\u8fd8\u5bb9\u6613\u51fa\u73b0\u4eba\u4e3a\u5931\u8bef\u3002\u811a\u672c\u4f5c\u4e3a\u8f7b\u91cf\u5316\u81ea\u52a8\u5316\u5de5\u5177&#xff0c;\u65e0\u9700\u590d\u6742\u5de5\u7a0b\u90e8\u7f72&#xff0c;\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u5b9e\u73b0\u6279\u91cf\u5904\u7406\u3001\u81ea\u52a8\u5de1\u68c0\u3001\u6570\u636e\u7edf\u8ba1\u7b49\u529f\u80fd&#xff0c;\u662f\u6280\u672f\u4eba\u63d0\u6548\u7684\u6838\u5fc3\u5229\u5668\u3002\u672c\u6587\u7cbe\u9009Python\u3001Shell\u4e24\u5927\u4e3b\u6d41\u811a\u672c\u8bed\u8a00\u76846\u4e2a\u9ad8\u9891\u5b9e\u6218\u6848\u4f8b&#xff0c;\u8986\u76d6\u670d\u52a1\u5668\u8fd0\u7ef4\u3001\u65e5\u5fd7\u5206\u6790\u3001\u6587\u4ef6\u6279\u91cf\u5904\u7406\u3001\u529e\u516c\u81ea\u52a8\u5316\u7b49\u6838\u5fc3\u573a\u666f&#xff0c;\u6240\u6709\u4ee3\u7801\u5b8c\u6574\u53ef\u8fd0\u884c\u3001\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/106421.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-17T03:08:34+00:00\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/106421.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/106421.html\",\"name\":\"6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-17T03:08:34+00:00\",\"dateModified\":\"2026-09-17T03:08:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/106421.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/106421.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/106421.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09\"}]},{\"@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":"6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09 - \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\/106421.html","og_locale":"zh_CN","og_type":"article","og_title":"6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u65e5\u5e38\u5f00\u53d1\u3001\u8fd0\u7ef4\u3001\u529e\u516c\u5de5\u4f5c\u4e2d&#xff0c;\u5927\u91cf\u91cd\u590d\u64cd\u4f5c\u4f1a\u8017\u8d39\u8d85\u591a\u65f6\u95f4&#xff0c;\u624b\u52a8\u64cd\u4f5c\u4e0d\u4ec5\u6548\u7387\u4f4e&#xff0c;\u8fd8\u5bb9\u6613\u51fa\u73b0\u4eba\u4e3a\u5931\u8bef\u3002\u811a\u672c\u4f5c\u4e3a\u8f7b\u91cf\u5316\u81ea\u52a8\u5316\u5de5\u5177&#xff0c;\u65e0\u9700\u590d\u6742\u5de5\u7a0b\u90e8\u7f72&#xff0c;\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u5b9e\u73b0\u6279\u91cf\u5904\u7406\u3001\u81ea\u52a8\u5de1\u68c0\u3001\u6570\u636e\u7edf\u8ba1\u7b49\u529f\u80fd&#xff0c;\u662f\u6280\u672f\u4eba\u63d0\u6548\u7684\u6838\u5fc3\u5229\u5668\u3002\u672c\u6587\u7cbe\u9009Python\u3001Shell\u4e24\u5927\u4e3b\u6d41\u811a\u672c\u8bed\u8a00\u76846\u4e2a\u9ad8\u9891\u5b9e\u6218\u6848\u4f8b&#xff0c;\u8986\u76d6\u670d\u52a1\u5668\u8fd0\u7ef4\u3001\u65e5\u5fd7\u5206\u6790\u3001\u6587\u4ef6\u6279\u91cf\u5904\u7406\u3001\u529e\u516c\u81ea\u52a8\u5316\u7b49\u6838\u5fc3\u573a\u666f&#xff0c;\u6240\u6709\u4ee3\u7801\u5b8c\u6574\u53ef\u8fd0\u884c\u3001","og_url":"https:\/\/www.wsisp.com\/helps\/106421.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-17T03:08:34+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/106421.html","url":"https:\/\/www.wsisp.com\/helps\/106421.html","name":"6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-17T03:08:34+00:00","dateModified":"2026-09-17T03:08:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/106421.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/106421.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/106421.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"6\u4e2a\u9ad8\u9891\u5b9e\u7528\u6280\u672f\u811a\u672c\u6848\u4f8b\uff0c\u8986\u76d6\u8fd0\u7ef4\u4e0e\u529e\u516c\u81ea\u52a8\u5316\uff08\u53ef\u76f4\u63a5\u590d\u7528\uff09"}]},{"@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\/106421","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=106421"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/106421\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=106421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=106421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=106421"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=106421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}