{"id":37298,"date":"2025-05-15T08:41:18","date_gmt":"2025-05-15T00:41:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/37298.html"},"modified":"2025-05-15T08:41:18","modified_gmt":"2025-05-15T00:41:18","slug":"%e3%80%90linux%e7%ac%94%e8%ae%b0%e3%80%91-%e8%bf%9b%e7%a8%8b%e4%bf%a1%e5%8f%b7%e7%9a%84%e4%ba%a7%e7%94%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/37298.html","title":{"rendered":"\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f"},"content":{"rendered":"<p>&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#x1f525;&#xff1a;\u5b64\u5bc2\u5927\u4ed9V &#x1f308;\u6536\u5f55\u4e13\u680f&#x1f308;&#xff1a;Linux &#x1f339;\u5f80\u671f\u56de\u987e&#x1f339;&#xff1a;\u3010Linux\u7b14\u8bb0\u3011\u8fdb\u7a0b\u95f4\u901a\u4fe1\u2014\u2014system v \u5171\u4eab\u5185\u5b58 &#x1f516;\u6d41\u6c34\u4e0d\u4e89&#xff0c;\u4e89\u7684\u662f\u6ed4\u6ed4\u4e0d<\/p>\n<hr \/>\n<h4> <\/h4>\n<ul>\n<li>\u4e00\u3001\u8fdb\u7a0b\u4fe1\u53f7\u7b80\u4ecb<\/li>\n<li>\u4e8c\u3001\u5f15\u5165\u4fe1\u53f7<\/li>\n<li>\u4e09\u3001\u4fe1\u53f7\u7684\u4ea7\u751f<\/li>\n<li>\n<ul>\n<li>3.1 \u81ea\u5b9a\u4e49\u6355\u6349\u52a8\u4f5c<\/li>\n<li>3.2 \u524d\u53f0\u8fdb\u7a0b\u4e0e\u540e\u53f0\u8fdb\u7a0b<\/li>\n<li>3.2 \u7406\u89e3\u7ed9\u8fdb\u7a0b\u53d1\u4fe1\u53f7<\/li>\n<li>\n<ul>\n<li>\u4fe1\u53f7\u4ea7\u751f&#xff0c;\u786c\u4ef6\u5f02\u5e38<\/li>\n<li>\u4fe1\u53f7\u4ea7\u751f&#xff0c;\u8f6f\u4ef6\u4ea7\u751f<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u4e00\u3001\u8fdb\u7a0b\u4fe1\u53f7\u7b80\u4ecb<\/h2>\n<p>Linux\u4fe1\u53f7&#xff1a;\u7a0b\u5e8f\u4e16\u754c\u7684\u201c\u7d27\u6025\u901a\u77e5\u201d\u673a\u5236<\/p>\n<p>\u5728Linux\u7cfb\u7edf\u4e2d&#xff0c;\u4fe1\u53f7&#xff08;Signal&#xff09; \u662f\u4e00\u79cd\u7b80\u5355\u800c\u5f3a\u5927\u7684\u901a\u4fe1\u673a\u5236&#xff0c;\u5982\u540c\u7a0b\u5e8f\u4e4b\u95f4\u7684\u201c\u7d27\u6025\u901a\u77e5\u201d\u3002\u5f53\u8fdb\u7a0b\u9047\u5230\u5916\u90e8\u4e8b\u4ef6&#xff08;\u5982\u7528\u6237\u6309\u4e0bCtrl&#043;C&#xff09;\u3001\u7a0b\u5e8f\u9519\u8bef&#xff08;\u5982\u5185\u5b58\u8d8a\u754c&#xff09;\u6216\u5b9a\u65f6\u4efb\u52a1\u89e6\u53d1\u65f6&#xff0c;\u7cfb\u7edf\u4f1a\u901a\u8fc7\u53d1\u9001\u4fe1\u53f7\u5feb\u901f\u6253\u65ad\u8fdb\u7a0b\u5f53\u524d\u64cd\u4f5c&#xff0c;\u8981\u6c42\u5176\u7acb\u5373\u54cd\u5e94\u3002<\/p>\n<p>\u4fe1\u53f7\u7684\u8bbe\u8ba1\u521d\u8877\u662f\u5904\u7406\u5f02\u6b65\u4e8b\u4ef6\u2014\u2014\u8fd9\u4e9b\u4e8b\u4ef6\u53ef\u80fd\u5728\u7a0b\u5e8f\u8fd0\u884c\u7684\u4efb\u4f55\u65f6\u523b\u53d1\u751f&#xff0c;\u65e0\u6cd5\u9884\u6d4b\u3002\u4f8b\u5982&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7528\u6237\u4e2d\u65ad&#xff1a;SIGINT&#xff08;Ctrl&#043;C&#xff09;\u901a\u77e5\u8fdb\u7a0b\u7ec8\u6b62\u3002<\/p>\n<\/li>\n<li>\n<p>\u81f4\u547d\u9519\u8bef&#xff1a;SIGSEGV&#xff08;\u6bb5\u9519\u8bef&#xff09;\u610f\u5473\u7740\u7a0b\u5e8f\u8bbf\u95ee\u4e86\u975e\u6cd5\u5185\u5b58\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u7a0b\u63a7\u5236&#xff1a;SIGTERM\u8bf7\u6c42\u8fdb\u7a0b\u4f18\u96c5\u9000\u51fa&#xff0c;SIGKILL\u5219\u5f3a\u5236\u7ec8\u6b62\u3002<\/p>\n<\/li>\n<li>\n<p>\u540e\u53f0\u4efb\u52a1&#xff1a;SIGCHLD\u901a\u77e5\u7236\u8fdb\u7a0b\u5b50\u4efb\u52a1\u72b6\u6001\u53d8\u5316\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5f00\u53d1\u8005\u53ef\u4ee5\u4e3a\u4fe1\u53f7\u7ed1\u5b9a\u81ea\u5b9a\u4e49\u5904\u7406\u903b\u8f91&#xff0c;\u6bd4\u5982\u4fdd\u5b58\u6570\u636e\u540e\u9000\u51fa&#xff0c;\u6216\u76f4\u63a5\u5ffd\u7565\u67d0\u4e9b\u4fe1\u53f7\u3002\u4f46\u4fe1\u53f7\u5904\u7406\u9700\u8c28\u614e\u2014\u2014\u4e0d\u5f53\u64cd\u4f5c\u53ef\u80fd\u5bfc\u81f4\u7a0b\u5e8f\u5d29\u6e83\u6216\u8d44\u6e90\u6cc4\u6f0f\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u7406\u89e3\u4fe1\u53f7\u81f3\u5173\u91cd\u8981&#xff1f;<\/p>\n<p>\u5b83\u662f\u5b9e\u73b0\u53ef\u9760\u670d\u52a1&#xff08;\u5982\u4f18\u96c5\u9000\u51fa\u3001\u9632\u6b62\u50f5\u5c38\u8fdb\u7a0b&#xff09;\u7684\u57fa\u77f3\u3002\u5e2e\u52a9\u5f00\u53d1\u8005\u8c03\u8bd5\u7a0b\u5e8f\u5d29\u6e83\u3001\u7406\u89e3\u7cfb\u7edf\u5e95\u5c42\u884c\u4e3a\u3002\u5728\u591a\u8fdb\u7a0b\u534f\u4f5c\u3001\u7cfb\u7edf\u7ba1\u7406\u4e2d\u5e7f\u6cdb\u5e94\u7528\u3002\u4fe1\u53f7\u673a\u5236\u5982\u540c\u7a0b\u5e8f\u7684\u201c\u795e\u7ecf\u7cfb\u7edf\u201d&#xff0c;\u867d\u8f7b\u91cf\u5374\u8d2f\u7a7f\u7cfb\u7edf\u8fd0\u884c\u7684\u6bcf\u4e2a\u89d2\u843d\u3002<\/p>\n<h2>\u4e8c\u3001\u5f15\u5165\u4fe1\u53f7<\/h2>\n<p>\u751f\u6d3b\u4e2d\u7684\u4fe1\u53f7&#xff1a;\u95f9\u949f\u3001\u7ea2\u7eff\u706f\u3001\u4e0a\u8bfe\u94c3\u58f0\u3001\u72fc\u70df\u3001\u7535\u8bdd\u95f9\u94c3\u7b49\u7b49\u3002 \u4fe1\u53f7\u5c31\u662f\u4e2d\u65ad\u6b63\u5728\u505a\u7684\u4e8b\u60c5&#xff0c;\u662f\u4e00\u79cd\u4e8b\u4ef6\u7684\u5f02\u6b65\u901a\u77e5\u673a\u5236&#xff0c;\u4fe1\u53f7\u662f\u4e00\u79cd\u7ed9\u8fdb\u7a0b\u53d1\u9001\u7684&#xff0c;\u7528\u6765\u8fdb\u884c\u4e8b\u4ef6\u5f02\u6b65\u901a\u77e5\u7684\u673a\u5236\u3002\u6ce8\u610f\u4fe1\u53f7\u7684\u4ea7\u751f\u76f8\u5bf9\u4e8e\u8fdb\u7a0b\u7684\u8fdb\u7a0b\u662f\u5f02\u6b65\u7684\u3002\u4fe1\u53f7\u662f\u53d1\u7ed9\u8fdb\u7a0b\u7684\u3002<\/p>\n<p>\u57fa\u672c\u7ed3\u8bba<\/p>\n<ul>\n<li>\u4fe1\u53f7\u5904\u7406&#xff0c;\u8fdb\u7a0b\u5728\u4fe1\u53f7\u6ca1\u6709\u4ea7\u751f\u7684\u65f6\u5019&#xff0c;\u65e9\u5c31\u77e5\u9053\u4fe1\u53f7\u8be5\u5982\u4f55\u5904\u7406\u4e86\u3002<\/li>\n<li>\u4fe1\u53f7\u7684\u5904\u7406&#xff0c;\u4e0d\u662f\u7acb\u5373\u5904\u7406\u800c\u662f\u7b49\u4e00\u4f1a\u518d\u5904\u7406&#xff0c;\u5408\u9002\u7684\u65f6\u5019\u8fdb\u884c\u4fe1\u53f7\u7684\u5904\u7406\u3002<\/li>\n<li>\u4eba\u80fd\u8ba4\u8bc6\u4fe1\u53f7&#xff0c;\u662f\u63d0\u524d\u88ab&#034;\u6559\u80b2&#034;\u8fc7\u7684&#xff0c;\u8fdb\u7a0b\u4e5f\u662f\u5982\u6b64&#xff0c;\u8fdb\u7a0b\u662f\u4eba\u8bbe\u8ba1\u7684\u8fdb\u7a0b\u5df2\u7ecf\u5185\u7f6e\u4e86\u5bf9\u4e8e\u4fe1\u53f7\u7684\u8bc6\u522b\u548c\u5904\u7406\u65b9\u5f0f\u3002<\/li>\n<li>\u4fe1\u53f7\u6e90\u975e\u5e38\u591a\u7ed9\u8fdb\u7a0b\u7684\u4ea7\u751f\u4fe1\u53f7\u7684\u4fe1\u53f7\u6e90\u4e5f\u975e\u5e38\u591a\u3002<\/li>\n<\/ul>\n<h2>\u4e09\u3001\u4fe1\u53f7\u7684\u4ea7\u751f<\/h2>\n<p>\u5f53\u6211\u4eec\u6740\u6389\u4e00\u4e2a\u8fdb\u7a0b\u7528ctrl&#043;c\u8fdb\u7a0b\u64cd\u4f5c&#xff0c;\u5176\u5b9e\u5f53\u6211\u4eec\u6309\u4e0bctrl&#043;c\u7684\u65f6\u5019\u5c31\u662f\u7ed9\u76ee\u6807\u8fdb\u7a0b\u53d1\u9001\u4fe1\u53f7\u7684&#xff0c;\u8fd9\u4e2a\u4fe1\u53f7\u7684\u5904\u7406\u52a8\u4f5c\u5c31\u662f\u8ba9\u8fdb\u7a0b\u7ec8\u6b62\u3002\u5176\u5b9e\u8fd8\u6709\u597d\u591a\u4fe1\u53f7&#xff0c;\u901a\u8fc7kill -l\u8fdb\u884c\u67e5\u770b \u6bcf\u4e2a\u4fe1\u53f7\u90fd\u6709\u4e00\u4e2a\u7f16\u53f7\u548c\u4e00\u4e2a\u5b8f\u5b9a\u4e49\u540d\u79f0,\u8fd9\u4e9b\u5b8f\u5b9a\u4e49\u53ef\u4ee5\u5728signal.h\u4e2d\u627e\u5230,\u4f8b\u5982\u5176\u4e2d\u6709\u5b9a\u4e49 #define SIGINT 2\u3002\u7f16\u53f734\u4ee5\u4e0a\u7684\u662f\u5b9e\u65f6\u4fe1\u53f7,\u672c\u7ae0\u53ea\u8ba8\u8bba\u7f16\u53f734\u4ee5\u4e0b\u7684\u4fe1\u53f7,\u4e0d\u8ba8\u8bba\u5b9e\u65f6\u4fe1\u53f7\u3002\u8fd9\u4e9b\u4fe1\u53f7\u5404\u81ea\u5728\u4ec0\u4e48\u6761\u4ef6\u4e0b\u4ea7\u751f,\u9ed8\u8ba4\u7684\u5904\u7406\u52a8\u4f5c\u662f\u4ec0\u4e48,\u5728signal(7)\u4e2d\u90fd\u6709\u8be6\u7ec6\u8bf4\u660e: man 7 signal<\/p>\n<p>kill -l\u547d\u4ee4\u53ef\u4ee5\u5bdf\u770b\u7cfb\u7edf\u5b9a\u4e49\u7684\u4fe1\u53f7\u5217\u8868 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004114-6825382abdde7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>3.1 \u81ea\u5b9a\u4e49\u6355\u6349\u52a8\u4f5c<\/h3>\n<p>\u8fdb\u7a0b\u6536\u5230\u4fe1\u53f7&#xff0c;\u5904\u7406\u4fe1\u53f7\u7684\u52a8\u4f5c\u6709\u4e09\u79cd<\/p>\n<li>\u9ed8\u8ba4\u5904\u7406\u52a8\u4f5c<\/li>\n<li>\u81ea\u5b9a\u4e49\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c<\/li>\n<li>\u5ffd\u7565\u5904\u7406<\/li>\n<p>\u6211\u4eec\u7528ctrl&#043;c\u6740\u6389\u8fdb\u7a0b&#xff0c;\u91c7\u7528\u7684\u662f\u4fe1\u53f7\u7684\u9ed8\u8ba4\u5904\u7406\u52a8\u4f5c&#xff0c;\u4f46\u662f\u7cfb\u7edf\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u51fd\u6570\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c<\/p>\n<p>  <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;signal.h&gt;<\/span><\/span><\/p>\n<p>   <span class=\"token keyword\">typedef<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">*<\/span>sighandler_t<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>   sighandler_t <span class=\"token function\">signal<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> signum<span class=\"token punctuation\">,<\/span> sighandler_t handler<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004115-6825382b08f41.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u81ea\u5b9a\u4e49\u628a\u4e8c\u53f7\u4fe1\u53f7SIGINT\u81ea\u5b9a\u4e49\u4fee\u6539\u4e3a\u6253\u5370\u83b7\u5f97\u4e00\u4e2a\u4fe1\u53f7&#xff0c;\u8fd0\u7528\u540e\u53d1\u73b0\u5728\u7528ctrl&#043;c\u4e4b\u524d\u7ec8\u6b62\u8fdb\u7a0b\u7684\u7ec4\u5408\u952e\u73b0\u5728\u53d8\u4e3a\u4e86\u6253\u5370\u662f\u51e0\u53f7\u4fe1\u53f7\u3002<\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span><span class=\"token string\">&lt;iostream&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span><span class=\"token string\">&lt;signal.h&gt;<\/span><\/span><br \/>\n<span class=\"token keyword\">using<\/span> <span class=\"token keyword\">namespace<\/span> std<span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">void<\/span> <span class=\"token function\">handler<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> sig<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    cout<span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">&#034;\u83b7\u5f97\u4e00\u4e2a\u4fe1\u53f7&#034;<\/span><span class=\"token operator\">&lt;&lt;<\/span>sig<span class=\"token operator\">&lt;&lt;<\/span>endl<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">signal<\/span><span class=\"token punctuation\">(<\/span>SIGINT<span class=\"token punctuation\">,<\/span>handler<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> cnt<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span><span class=\"token boolean\">true<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        cout<span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">&#034;haha&#034;<\/span><span class=\"token operator\">&lt;&lt;<\/span>cnt<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token operator\">&lt;&lt;<\/span>endl<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">sleep<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004115-6825382b2f6ee.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6267\u884c\u81ea\u5b9a\u4e49\u4fe1\u606f\u5904\u7406\u7684\u52a8\u4f5c&#xff0c;\u53eb\u4e3a\u81ea\u5b9a\u4e49\u6355\u6349\u52a8\u4f5c\u3002<\/p>\n<h3>3.2 \u524d\u53f0\u8fdb\u7a0b\u4e0e\u540e\u53f0\u8fdb\u7a0b<\/h3>\n<p>\u524d\u53f0\u8fdb\u7a0b\u4e0e\u540e\u53f0\u8fdb\u7a0b\u662f\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7ba1\u7406\u4efb\u52a1\u6267\u884c\u7684\u4e24\u79cd\u6a21\u5f0f&#xff0c;\u5c24\u5176\u5728\u547d\u4ee4\u884c\u73af\u5883&#xff08;\u5982Linux\/Unix&#xff09;\u4e2d\u5e7f\u6cdb\u5e94\u7528\u3002\u5b83\u4eec\u7684\u6838\u5fc3\u533a\u522b\u5728\u4e8e \u662f\u5426\u5360\u7528\u7ec8\u7aef\u63a7\u5236\u6743 \u4ee5\u53ca \u4e0e\u7528\u6237\u7684\u4ea4\u4e92\u65b9\u5f0f\u3002<\/p>\n<p>\u952e\u76d8\u4ea7\u751f\u7684\u4fe1\u53f7&#xff0c;\u53ea\u80fd\u53d1\u9001\u7ed9\u524d\u53f0\u8fdb\u7a0b\u3002\u800c\u952e\u76d8\u4ea7\u751f\u7684\u4fe1\u53f7\u7ed9\u540e\u53f0\u8fdb\u7a0b&#xff0c;\u540e\u53f0\u8fdb\u7a0b\u4e0d\u505a\u5904\u7406\u3002\u6240\u4ee5\u524d\u53f0\u8fdb\u7a0b\u80fd\u4ece\u952e\u76d8\u4e2d\u83b7\u53d6\u6807\u51c6\u8f93\u5165&#xff0c;\u540e\u53f0\u8fdb\u7a0b\u65e0\u6cd5\u4ece\u6807\u51c6\u8f93\u5165\u4e2d\u83b7\u53d6\u5185\u5bb9&#xff0c;\u4f46\u662f\u8fd9\u4e8c\u8005\u90fd\u80fd\u5411\u6807\u51c6\u8f93\u5165\u4e2d\u6253\u5370\u3002\u952e\u76d8\u53ea\u6709\u4e00\u4e2a&#xff0c;\u8f93\u5165\u6570\u636e\u4e00\u5b9a\u662f\u7ed9\u4e00\u4e2a\u786e\u5b9a\u7684\u8fdb\u7a0b\u7684&#xff0c;\u524d\u53f0\u8fdb\u7a0b\u5fc5\u987b\u53ea\u6709\u4e00\u4e2a&#xff0c;\u540e\u53f0\u8fdb\u7a0b\u53ef\u4ee5\u6709\u591a\u4e2a\u3002\u524d\u53f0\u8fdb\u7a0b\u7684\u672c\u8d28\u5c31\u662f\u4ece\u952e\u76d8\u83b7\u53d6\u6570\u636e\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004115-6825382b5d830.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u521a\u624d\u5199\u7684\u90a3\u4e2a\u81ea\u5b9a\u4e49\u6355\u6349\u7684\u7a0b\u5e8f&#xff0c;\u6211\u4eec\u8f93\u5165\u5176\u4ed6\u7684Linux\u7684\u6307\u4ee4\u53d1\u73b0\u6ca1\u53cd\u5e94&#xff0c;\u8fd9\u662f\u56e0\u4e3a\u5f53\u8fd9\u4e2a\u53ef\u6267\u884c\u7a0b\u5e8f\u5df2\u7ecf\u53d8\u6210\u4e86\u524d\u53f0\u8fdb\u7a0b&#xff0c;\u524d\u53f0\u8fdb\u7a0b\u53ea\u80fd\u6709\u4e00\u4e2a&#xff0c;bash\u8fdb\u7a0b\u81ea\u52a8\u88ab\u653e\u5230\u540e\u53f0\u8fdb\u7a0b\u4e86\u3002<\/p>\n<hr \/>\n<p>ctrl&#043;z \u524d\u53f0\u8fdb\u7a0b\u5207\u6362\u5230\u540e\u53f0<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004115-6825382b9bf12.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> jobs \u67e5\u770b\u6240\u6709\u7684\u540e\u53f0\u8fdb\u7a0b <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004115-6825382bcc98f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> fg&#043;\u4efb\u52a1\u53f7\u5c06\u7279\u5b9a\u7684\u8fdb\u7a0b\u63d0\u5230\u524d\u53f0 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004115-6825382bdf040.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> bg &#043; \u4efb\u52a1\u53f7 \u8ba9\u540e\u53f0\u8fdb\u7a0b\u4e5f\u8fd0\u884c<\/p>\n<p>\u8fd9\u65f6\u53d1\u73b0\u7528ctrl&#043;c\u6ca1\u53cd\u5e94&#xff0c;\u628a\u8fd9\u4e2a\u540e\u53f0\u8fdb\u7a0b\u5148\u63d0\u5230\u524d\u53f0\u5728\u8bd5\u5c31\u53ef\u4ee5\u4e86\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004116-6825382c18825.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5bf9\u4e0a\u9762\u7684\u7684\u547d\u4ee4\u8fdb\u884c\u4e00\u4e0b\u603b\u7ed3<\/p>\n<p>jobs\u67e5\u770b\u6240\u6709\u7684\u540e\u53f0\u8fdb\u7a0b fg&#043;\u4efb\u52a1\u53f7\u5c06\u7279\u5b9a\u7684\u8fdb\u7a0b\u63d0\u5230\u524d\u53f0 bg&#043;\u4efb\u52a1\u53f7\u8ba9\u540e\u53f0\u8fdb\u7a0b\u4e5f\u8fd0\u884c ctrl&#043;z\u524d\u53f0\u8fdb\u7a0b\u5207\u6362\u5230\u540e\u53f0<\/p>\n<h3>3.2 \u7406\u89e3\u7ed9\u8fdb\u7a0b\u53d1\u4fe1\u53f7<\/h3>\n<p>\u4fe1\u53f7\u4ea7\u751f\u4e4b\u540e&#xff0c;\u4e0d\u662f\u7acb\u5373\u5904\u7406\u7684&#xff0c;\u6240\u4ee5\u8fdb\u7a0b\u5fc5\u987b\u628a\u4fe1\u53f7\u8bb0\u5f55\u4e0b\u6765\u7b49\u5230\u5408\u9002\u7684\u65f6\u5019\u8fdb\u884c\u5904\u7406\u3002\u8bb0\u5f55\u5728\u4e00\u4e2a\u53ebstruct_task_struct \u7684\u7ed3\u6784\u4f53\u4e2d&#xff0c;(\u4f4d\u56fe\u7ed3\u6784)\u6bd4\u7279\u4f4d\u7684\u4f4d\u7f6e\u8868\u793a\u4fe1\u53f7\u6807\u53f7&#xff0c;\u6bd4\u7279\u4f4d\u7684\u5185\u5bb9\u8868\u793a\u662f\u5426\u6536\u5230\u3002\u53d1\u9001\u4fe1\u53f7\u672c\u8d28\u5c31\u662f\u5411\u76ee\u6807\u8fdb\u7a0b\u5199\u4fe1\u53f7&#xff0c;\u4fee\u6539\u4f4d\u56fe\u3002\u4e0a\u9762\u63d0\u5230\u7684struct_task_struct \u662f\u64cd\u4f5c\u7cfb\u7edf\u5185\u7684\u6570\u636e\u7ed3\u6784\u5bf9\u8c61&#xff0c;\u4fee\u6539\u4f4d\u56fe\u7684\u672c\u8d28\u5c31\u662f\u4fee\u6539\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u6570\u636e&#xff0c;\u6240\u4ee5\u8fd9\u5c31\u8868\u660e\u4e0d\u7ba1\u4fe1\u53f7\u600e\u4e48\u4ea7\u751f\u53d1\u9001\u4fe1\u53f7\u5728\u5e95\u5c42\u5fc5\u987b\u8ba9\u64cd\u4f5c\u7cfb\u7edf\u53d1\u9001&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u53d1\u9001\u4fe1\u53f7\u5c31\u662f\u8fdb\u884c\u8fdb\u884c\u7cfb\u7edf\u8c03\u7528\u3002<\/p>\n<p>\u4e3e\u4e00\u4e2a\u4f8b\u5b50&#xff0c;\u53d1\u9001kill\u4fe1\u53f7<\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;iostream&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;string&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;sys\/types.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;signal.h&gt;<\/span><\/span><\/p>\n<p><span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> argc<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">char<\/span> <span class=\"token operator\">*<\/span>argv<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>argc <span class=\"token operator\">!&#061;<\/span> <span class=\"token number\">3<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        std<span class=\"token operator\">::<\/span>cout <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034;.\/mykill signumber pid&#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> std<span class=\"token operator\">::<\/span>endl<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">int<\/span> signum <span class=\"token operator\">&#061;<\/span> std<span class=\"token operator\">::<\/span><span class=\"token function\">stoi<\/span><span class=\"token punctuation\">(<\/span>argv<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    pid_t target <span class=\"token operator\">&#061;<\/span> std<span class=\"token operator\">::<\/span><span class=\"token function\">stoi<\/span><span class=\"token punctuation\">(<\/span>argv<span class=\"token punctuation\">[<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> n <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">kill<\/span><span class=\"token punctuation\">(<\/span>target<span class=\"token punctuation\">,<\/span> signum<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>n <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        std<span class=\"token operator\">::<\/span>cout <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034;send &#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> signum <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034;to&#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> target <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034; success.&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;iostream&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;unistd.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;signal.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;sys\/types.h&gt;<\/span><\/span><\/p>\n<p><span class=\"token keyword\">void<\/span> <span class=\"token function\">handlerSig<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> sig<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    std<span class=\"token operator\">::<\/span>cout <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034;\u83b7\u5f97\u4e86\u4e00\u4e2a\u4fe1\u53f7: &#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> sig <span class=\"token operator\">&lt;&lt;<\/span> std<span class=\"token operator\">::<\/span>endl<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">exit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">13<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">signal<\/span><span class=\"token punctuation\">(<\/span>SIGINT<span class=\"token punctuation\">,<\/span> handlerSig<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token keyword\">int<\/span> cnt <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">while<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token boolean\">true<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        std<span class=\"token operator\">::<\/span>cout <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034;hello world, &#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> cnt<span class=\"token operator\">&#043;&#043;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034; ,pid: &#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token function\">getpid<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&lt;&lt;<\/span> std<span class=\"token operator\">::<\/span>endl<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">sleep<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u624b\u52a8\u5b9e\u73b0\u548c\u6d4b\u8bd5\u201c\u4fe1\u53f7\u53d1\u9001\u4e0e\u63a5\u6536\u201d\u673a\u5236&#xff0c;\u4e5f\u5c31\u662f\u5728\u9a8c\u8bc1 kill \u547d\u4ee4\u548c signal \u4fe1\u53f7\u5904\u7406\u673a\u5236\u3002<\/p>\n<h4>\u4fe1\u53f7\u4ea7\u751f&#xff0c;\u786c\u4ef6\u5f02\u5e38<\/h4>\n<p>\u786c\u4ef6\u5f02\u5e38\u88ab\u786c\u4ef6\u4ee5\u67d0\u79cd\u65b9\u5f0f\u88ab\u786c\u4ef6\u68c0\u6d4b\u5230\u5e76\u901a\u77e5\u5185\u6838,\u7136\u540e\u5185\u6838\u5411\u5f53\u524d\u8fdb\u7a0b\u53d1\u9001\u9002\u5f53\u7684\u4fe1\u53f7\u3002\u4f8b\u5982\u5f53\u524d \u8fdb\u7a0b\u6267\u884c\u4e86\u9664\u4ee50\u7684\u6307\u4ee4, CPU\u7684\u8fd0\u7b97\u5355\u5143\u4f1a\u4ea7\u751f\u5f02\u5e38, \u5185\u6838\u5c06\u8fd9\u4e2a\u5f02\u5e38\u89e3\u91ca\u4e3aSIGFPE\u4fe1\u53f7\u53d1\u9001\u7ed9\u8fdb \u7a0b\u3002\u518d\u6bd4\u5982\u5f53\u524d\u8fdb\u7a0b\u8bbf\u95ee\u4e86\u975e\u6cd5\u5185\u5b58\u5730\u5740, MMU\u4f1a\u4ea7\u2f63\u5f02\u5e38,\u5185\u6838\u5c06\u8fd9\u4e2a\u5f02\u5e38\u89e3\u91ca\u4e3aSIGSEGV\u4fe1\u53f7\u53d1\u9001 \u7ed9\u8fdb\u7a0b\u3002<\/p>\n<p>\u4fe1\u53f7\u5168\u662f\u64cd\u4f5c\u7cfb\u7edf\u53d1\u9001\u7684&#xff0c;\u7a0b\u5e8f\u51fa\u9519\u4e86&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u8bc6\u522b\u5230\u7a0b\u5e8f\u72af\u9519\u4e86\u3002\u5728\u4e00\u65b9\u9762\u64cd\u4f5c\u7cfb\u7edf\u901a\u8fc7\u786c\u4ef6\u65b9\u5f0f\u77e5\u9053\u3002<\/p>\n<li>\n<p>CPU\u6267\u884c\u6307\u4ee4\u65f6\u968f\u65f6\u5728\u201c\u68c0\u6d4b\u201dCPU\u6bcf\u6761\u6307\u4ee4\u5728\u6267\u884c\u65f6&#xff0c;\u90fd\u4f1a\u81ea\u52a8\u8fdb\u884c\u68c0\u67e5&#xff0c;\u5305\u62ec&#xff1a;\u9664\u6cd5\u65f6\u68c0\u67e5\u9664\u6570\u662f\u4e0d\u662f0\u3002\u8bbf\u5b58\u65f6\u68c0\u67e5\u5730\u5740\u662f\u5426\u5408\u6cd5&#xff08;\u5206\u9875\u673a\u5236\u3001\u6bb5\u673a\u5236&#xff09;\u3002\u7279\u6743\u6307\u4ee4\u68c0\u67e5\u5f53\u524d\u8fd0\u884c\u7ea7\u522b&#xff08;\u7528\u6237\u6001\u4e0d\u80fd\u5e72\u5185\u6838\u7684\u4e8b\u3002\u8fd9\u4e9b\u68c0\u67e5\u662fCPU\u7535\u8def\u91cc\u76f4\u63a5\u5b8c\u6210\u7684&#xff0c;\u4e0d\u9700\u8981\u7a0b\u5e8f\u53c2\u4e0e&#xff0c;\u901f\u5ea6\u662f\u7eb3\u79d2\u7ea7\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e00\u65e6\u53d1\u73b0\u95ee\u9898 \u2192 \u5f02\u5e38\u4fe1\u53f7&#xff08;Exception&#xff09;\u6bd4\u5982\u96640\u65f6&#xff1a; CPU\u5185\u90e8\u201c\u9664\u6cd5\u5355\u5143\u201d\u53d1\u73b0\u9664\u6570\u4e3a0\u3002\u7acb\u523b\u89e6\u53d1\u4e00\u4e2a\u201c\u9664\u6cd5\u9519\u8bef\u5f02\u5e38\u201d&#xff08;\u901a\u5e38\u662f#DE\u5f02\u5e38&#xff09;\u3002\u518d\u6bd4\u5982\u8bbf\u95ee\u4e86\u4e0d\u5b58\u5728\u7684\u865a\u62df\u5730\u5740&#xff1a;CPU\u67e5\u9875\u8868\u53d1\u73b0PTE\u65e0\u6548\u3002\u7acb\u523b\u89e6\u53d1\u4e00\u4e2a\u201c\u7f3a\u9875\u5f02\u5e38\u201d&#xff08;#PF Page Fault&#xff09;\u3002 \u26a1 \u672c\u8d28\u4e0a&#xff1a;\u8fd9\u4e9b\u201c\u5f02\u5e38\u201d\u5c31\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u201c\u4e2d\u65ad\u201d&#xff0c;\u533a\u522b\u53ea\u662f\u6765\u6e90\u4e0d\u540c&#xff08;\u5185\u90e8\u68c0\u6d4b vs \u5916\u90e8\u4e2d\u65ad\u5f15\u811a&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>CPU \u89e6\u53d1\u5f02\u5e38\u540e\u4f1a\u5e72\u561b&#xff1f;&#xff08;\u786c\u4ef6\u52a8\u4f5c&#xff09; \u6302\u8d77\u5f53\u524d\u6307\u4ee4\u6d41\u3002\u628a\u5f53\u524d\u4e0a\u4e0b\u6587\u4fe1\u606f&#xff08;\u5bc4\u5b58\u5668\u3001EIP\u3001\u6807\u5fd7\u5bc4\u5b58\u5668&#xff09;\u538b\u6808\u3002\u8df3\u8f6c\u5230IDT&#xff08;\u4e2d\u65ad\u63cf\u8ff0\u7b26\u8868&#xff09;\u91cc\u767b\u8bb0\u7684\u5bf9\u5e94\u5f02\u5e38\u5904\u7406\u51fd\u6570\u3002\u4f8b\u5982&#xff0c;#DE\u5f02\u5e38\u4f1a\u8df3\u5230\u201c\u96640\u5f02\u5e38\u201d\u7684\u5904\u7406\u5165\u53e3\u3002\u8fd9\u4e2a\u5904\u7406\u51fd\u6570\u662f\u64cd\u4f5c\u7cfb\u7edf\u5199\u597d\u7684\u5185\u6838\u4ee3\u7801&#xff08;\u7528\u6237\u5199\u4e0d\u4e86&#xff09;\u3002\u27a1\ufe0f \u786c\u4ef6\u5230\u8fd9\u91cc\u7684\u6d3b\u513f\u5c31\u5e72\u5b8c\u4e86&#xff0c;\u540e\u7eed\u63a5\u529b\u68d2\u4ea4\u7ed9\u5185\u6838\u3002<\/p>\n<\/li>\n<h4>\u4fe1\u53f7\u4ea7\u751f&#xff0c;\u8f6f\u4ef6\u4ea7\u751f<\/h4>\n<p>\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e2d&#xff0c;\u4fe1\u53f7\u7684\u8f6f\u4ef6\u6761\u4ef6\u6307\u7684\u662f\u7531\u8f6f\u4ef6\u5185\u90e8\u72b6\u6001\u6216\u7279\u5b9a\u8f6f\u4ef6\u64cd\u4f5c\u89e6\u53d1\u7684\u4fe1\u53f7\u4ea7\u751f\u673a\u5236\u3002\u8fd9\u4e9b\u6761 \u4ef6\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5b9a\u65f6\u5668\u8d85\u65f6&#xff08;\u5982alarm\u51fd\u6570\u8bbe\u5b9a\u7684\u65f6\u95f4\u5230\u8fbe&#xff09;\u3001\u8f6f\u4ef6\u5f02\u5e38&#xff08;\u5982\u5411\u5df2\u5173\u95ed\u7684\u7ba1\u9053\u5199\u6570\u636e \u4ea7\u2f63\u7684SIGPIPE\u4fe1\u53f7&#xff09;\u7b49\u3002\u5f53\u8fd9\u4e9b\u8f6f\u4ef6\u6761\u4ef6\u6ee1\u8db3\u65f6&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u5411\u76f8\u5173\u8fdb\u7a0b\u53d1\u9001\u76f8\u5e94\u7684\u4fe1\u53f7&#xff0c;\u4ee5\u901a\u77e5 \u8fdb\u7a0b\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002\u7b80\u800c\u8a00\u4e4b&#xff0c;\u8f6f\u4ef6\u6761\u4ef6\u662f\u56e0\u64cd\u4f5c\u7cfb\u7edf\u5185\u90e8\u6216\u5916\u90e8\u8f6f\u4ef6\u64cd\u4f5c\u800c\u89e6\u53d1\u7684\u4fe1\u53f7\u4ea7\u2f63\u3002<\/p>\n<p>\u8c03\u7528 alarm \u51fd\u6570\u53ef\u4ee5\u8bbe\u5b9a\u2f00\u4e2a\u95f9\u949f,\u4e5f\u5c31\u662f\u544a\u8bc9\u5185\u6838\u5728 seconds \u79d2\u4e4b\u540e\u7ed9\u5f53\u524d\u8fdb\u7a0b\u53d1SIGALRM \u4fe1\u53f7&#xff0c;\u8be5\u4fe1\u53f7\u7684\u9ed8\u8ba4\u5904\u7406\u52a8\u4f5c\u662f\u7ec8\u6b62\u5f53\u524d\u8fdb\u7a0b\u3002 \u8fd9\u4e2a\u51fd\u6570\u7684\u8fd4\u56de\u503c\u662f0\u6216\u8005\u662f\u4ee5\u524d\u8bbe\u5b9a\u7684\u95f9\u949f\u65f6\u95f4\u8fd8\u4f59\u4e0b\u7684\u79d2\u6570\u3002\u6253\u4e2a\u6bd4\u65b9,\u67d0\u4eba\u8981\u5c0f\u7761\u2f00\u89c9,\u8bbe\u5b9a\u95f9\u949f\u4e3a30\u5206\u949f\u4e4b\u540e\u54cd,20\u5206\u949f\u540e\u88ab\u2f08\u5435\u9192\u4e86,\u8fd8\u60f3\u591a\u7761\u4e00\u4f1a\u513f,\u4e8e\u662f\u91cd\u65b0\u8bbe\u5b9a\u95f9\u949f\u4e3a15\u5206\u949f\u4e4b\u540e\u54cd,\u201c\u4ee5\u524d\u8bbe\u5b9a\u7684\u95f9\u949f\u65f6\u95f4\u8fd8\u4f59\u4e0b\u7684\u65f6\u95f4\u201d\u5c31\u662f10\u5206\u949f\u3002\u5982\u679cseconds\u503c\u4e3a0,\u8868\u793a\u53d6\u6d88\u4ee5\u524d\u8bbe\u5b9a\u7684\u95f9\u949f,\u51fd\u6570\u7684\u8fd4\u56de\u503c\u4ecd\u7136\u662f\u4ee5\u524d\u8bbe\u5b9a\u7684\u95f9\u949f\u65f6\u95f4\u8fd8\u4f59\u4e0b\u7684\u79d2\u6570\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004116-6825382c91636.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7cfb\u7edf\u95f9\u949f&#xff0c;\u5176\u5b9e\u672c\u8d28\u662fOS\u5fc5\u987b\u81ea\u8eab\u5177\u6709\u5b9a\u65f6\u529f\u80fd&#xff0c;\u5e76\u80fd\u8ba9\u7528\u6237\u8bbe\u7f6e\u8fd9\u79cd\u5b9a\u65f6\u529f\u80fd&#xff0c;\u624d\u53ef\u80fd\u5b9e\u73b0\u95f9\u949f\u8fd9 \u6837\u7684\u6280\u672f\u3002 \u73b0\u4ee3Linux\u662f\u63d0\u4f9b\u4e86\u5b9a\u65f6\u529f\u80fd\u7684&#xff0c;\u5b9a\u65f6\u5668\u4e5f\u8981\u88ab\u7ba1\u7406&#xff1a;\u5148\u63cf\u8ff0&#xff0c;\u5728\u7ec4\u7ec7\u3002\u5185\u6838\u4e2d\u7684\u5b9a\u65f6\u5668\u6570\u636e\u7ed3\u6784\u662f&#xff1a;<\/p>\n<p><span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">timer_list<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">list_head<\/span> entry<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">unsigned<\/span> <span class=\"token keyword\">long<\/span> expires<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">*<\/span>function<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">unsigned<\/span> <span class=\"token keyword\">long<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">unsigned<\/span> <span class=\"token keyword\">long<\/span> data<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">tvec_t_base_s<\/span> <span class=\"token operator\">*<\/span>base<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u64cd\u4f5c\u7cfb\u7edf\u7ba1\u7406\u5b9a\u65f6\u5668&#xff0c;\u91c7\u52c7\u7684\u662f\u65f6\u95f4\u8f6e\u7684\u505a\u6cd5&#xff0c;\u4f46\u662f\u6211\u4eec\u4e3a\u4e86\u7b80\u5355\u7406\u89e3&#xff0c;\u53ef\u4ee5\u628a\u5b83\u5728\u7ec4\u7ec7\u6210\u4e3a&#034;\u5806\u7ed3\u6784&#034;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e46\u6b21\uff0c\u6536\u85cf42\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Linux\u7cfb\u7edf\u4e2d\u7684\u4fe1\u53f7\u673a\u5236\uff0c\u4fe1\u53f7\u662f\u8fdb\u7a0b\u95f4\u901a\u4fe1\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u7528\u4e8e\u5904\u7406\u5f02\u6b65\u4e8b\u4ef6\u3002\u4fe1\u53f7\u53ef\u4ee5\u7531\u5916\u90e8\u4e8b\u4ef6\uff08\u5982\u7528\u6237\u6309\u4e0bCtrl+C\uff09\u3001\u7a0b\u5e8f\u9519\u8bef\uff08\u5982\u5185\u5b58\u8d8a\u754c\uff09\u6216\u5b9a\u65f6\u4efb\u52a1\u89e6\u53d1\u3002\u4fe1\u53f7\u7684\u5904\u7406\u65b9\u5f0f\u5305\u62ec\u9ed8\u8ba4\u5904\u7406\u3001\u81ea\u5b9a\u4e49\u5904\u7406\u548c\u5ffd\u7565\u5904\u7406\u3002\u6587\u7ae0\u8fd8\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u901a\u8fc7\u7cfb\u7edf\u8c03\u7528\u53d1\u9001\u4fe1\u53f7\uff0c\u4ee5\u53ca\u524d\u53f0\u8fdb\u7a0b\u4e0e\u540e\u53f0\u8fdb\u7a0b\u7684\u533a\u522b\u3002\u6b64\u5916\uff0c\u6587\u7ae0\u8fd8\u63a2\u8ba8\u4e86\u786c\u4ef6\u5f02\u5e38\u5982\u4f55\u89e6\u53d1\u4fe1\u53f7\uff0c\u5e76\u63d0\u4f9b\u4e86\u4ee3\u7801\u793a\u4f8b\u6765\u6f14\u793a\u5982\u4f55\u81ea\u5b9a\u4e49\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c\u548c\u53d1\u9001\u4fe1\u53f7\u3002\u7406\u89e3\u4fe1\u53f7\u673a\u5236\u5bf9\u4e8e\u5b9e\u73b0\u53ef\u9760\u7684\u7cfb\u7edf\u670d\u52a1\u3001\u8c03\u8bd5\u7a0b\u5e8f\u5d29\u6e83\u4ee5\u53ca\u591a\u8fdb\u7a0b\u534f\u4f5c\u81f3\u5173\u91cd\u8981\u3002<\/p>\n","protected":false},"author":2,"featured_media":37289,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,305],"topic":[],"class_list":["post-37298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-305"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f - \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\/37298.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e46\u6b21\uff0c\u6536\u85cf42\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Linux\u7cfb\u7edf\u4e2d\u7684\u4fe1\u53f7\u673a\u5236\uff0c\u4fe1\u53f7\u662f\u8fdb\u7a0b\u95f4\u901a\u4fe1\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u7528\u4e8e\u5904\u7406\u5f02\u6b65\u4e8b\u4ef6\u3002\u4fe1\u53f7\u53ef\u4ee5\u7531\u5916\u90e8\u4e8b\u4ef6\uff08\u5982\u7528\u6237\u6309\u4e0bCtrl+C\uff09\u3001\u7a0b\u5e8f\u9519\u8bef\uff08\u5982\u5185\u5b58\u8d8a\u754c\uff09\u6216\u5b9a\u65f6\u4efb\u52a1\u89e6\u53d1\u3002\u4fe1\u53f7\u7684\u5904\u7406\u65b9\u5f0f\u5305\u62ec\u9ed8\u8ba4\u5904\u7406\u3001\u81ea\u5b9a\u4e49\u5904\u7406\u548c\u5ffd\u7565\u5904\u7406\u3002\u6587\u7ae0\u8fd8\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u901a\u8fc7\u7cfb\u7edf\u8c03\u7528\u53d1\u9001\u4fe1\u53f7\uff0c\u4ee5\u53ca\u524d\u53f0\u8fdb\u7a0b\u4e0e\u540e\u53f0\u8fdb\u7a0b\u7684\u533a\u522b\u3002\u6b64\u5916\uff0c\u6587\u7ae0\u8fd8\u63a2\u8ba8\u4e86\u786c\u4ef6\u5f02\u5e38\u5982\u4f55\u89e6\u53d1\u4fe1\u53f7\uff0c\u5e76\u63d0\u4f9b\u4e86\u4ee3\u7801\u793a\u4f8b\u6765\u6f14\u793a\u5982\u4f55\u81ea\u5b9a\u4e49\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c\u548c\u53d1\u9001\u4fe1\u53f7\u3002\u7406\u89e3\u4fe1\u53f7\u673a\u5236\u5bf9\u4e8e\u5b9e\u73b0\u53ef\u9760\u7684\u7cfb\u7edf\u670d\u52a1\u3001\u8c03\u8bd5\u7a0b\u5e8f\u5d29\u6e83\u4ee5\u53ca\u591a\u8fdb\u7a0b\u534f\u4f5c\u81f3\u5173\u91cd\u8981\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/37298.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-15T00:41:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004114-6825382abdde7.png\" \/>\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\/37298.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/37298.html\",\"name\":\"\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-15T00:41:18+00:00\",\"dateModified\":\"2025-05-15T00:41:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/37298.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/37298.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37298.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f\"}]},{\"@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":"\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f - \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\/37298.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e46\u6b21\uff0c\u6536\u85cf42\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Linux\u7cfb\u7edf\u4e2d\u7684\u4fe1\u53f7\u673a\u5236\uff0c\u4fe1\u53f7\u662f\u8fdb\u7a0b\u95f4\u901a\u4fe1\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u7528\u4e8e\u5904\u7406\u5f02\u6b65\u4e8b\u4ef6\u3002\u4fe1\u53f7\u53ef\u4ee5\u7531\u5916\u90e8\u4e8b\u4ef6\uff08\u5982\u7528\u6237\u6309\u4e0bCtrl+C\uff09\u3001\u7a0b\u5e8f\u9519\u8bef\uff08\u5982\u5185\u5b58\u8d8a\u754c\uff09\u6216\u5b9a\u65f6\u4efb\u52a1\u89e6\u53d1\u3002\u4fe1\u53f7\u7684\u5904\u7406\u65b9\u5f0f\u5305\u62ec\u9ed8\u8ba4\u5904\u7406\u3001\u81ea\u5b9a\u4e49\u5904\u7406\u548c\u5ffd\u7565\u5904\u7406\u3002\u6587\u7ae0\u8fd8\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u901a\u8fc7\u7cfb\u7edf\u8c03\u7528\u53d1\u9001\u4fe1\u53f7\uff0c\u4ee5\u53ca\u524d\u53f0\u8fdb\u7a0b\u4e0e\u540e\u53f0\u8fdb\u7a0b\u7684\u533a\u522b\u3002\u6b64\u5916\uff0c\u6587\u7ae0\u8fd8\u63a2\u8ba8\u4e86\u786c\u4ef6\u5f02\u5e38\u5982\u4f55\u89e6\u53d1\u4fe1\u53f7\uff0c\u5e76\u63d0\u4f9b\u4e86\u4ee3\u7801\u793a\u4f8b\u6765\u6f14\u793a\u5982\u4f55\u81ea\u5b9a\u4e49\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c\u548c\u53d1\u9001\u4fe1\u53f7\u3002\u7406\u89e3\u4fe1\u53f7\u673a\u5236\u5bf9\u4e8e\u5b9e\u73b0\u53ef\u9760\u7684\u7cfb\u7edf\u670d\u52a1\u3001\u8c03\u8bd5\u7a0b\u5e8f\u5d29\u6e83\u4ee5\u53ca\u591a\u8fdb\u7a0b\u534f\u4f5c\u81f3\u5173\u91cd\u8981\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/37298.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-15T00:41:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515004114-6825382abdde7.png"}],"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\/37298.html","url":"https:\/\/www.wsisp.com\/helps\/37298.html","name":"\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-15T00:41:18+00:00","dateModified":"2025-05-15T00:41:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/37298.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/37298.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/37298.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u7b14\u8bb0\u3011\u2014\u2014\u8fdb\u7a0b\u4fe1\u53f7\u7684\u4ea7\u751f"}]},{"@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\/37298","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=37298"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37298\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/37289"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=37298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=37298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=37298"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=37298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}