{"id":75133,"date":"2026-02-11T15:05:48","date_gmt":"2026-02-11T07:05:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/75133.html"},"modified":"2026-02-11T15:05:48","modified_gmt":"2026-02-11T07:05:48","slug":"linux%e8%bf%9b%e7%a8%8b%e9%80%9a%e4%bf%a1-%e7%ae%a1%e9%81%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/75133.html","title":{"rendered":"Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"4WGh-1770792248637-toc\" style=\"margin-left:0px\">1 \u533f\u540d\u7ba1\u9053<\/p>\n<p id=\"OfKD-1770792283532-toc\" style=\"margin-left:40px\">1.1 \u521b\u5efa\u533f\u540d\u7ba1\u9053<\/p>\n<p id=\"PSzD-1770792289903-toc\" style=\"margin-left:80px\">1.1.1 pipe<\/p>\n<p id=\"Z4B2-1770792381158-toc\" style=\"margin-left:40px\">1.2 \u533f\u540d\u7ba1\u9053\u7684\u4f7f\u7528<\/p>\n<p id=\"6eTm-1770792453504-toc\" style=\"margin-left:40px\">1.3\u00a0\u5185\u6838\u5b9e\u73b0\u539f\u7406<\/p>\n<p id=\"XUHJ-1770792470320-toc\" style=\"margin-left:80px\">1.3.1 \u5185\u6838\u6570\u636e\u7ed3\u6784<\/p>\n<p id=\"YYUD-1770792508523-toc\" style=\"margin-left:80px\">1.3.2 \u6570\u636e\u6d41\u52a8\u8fc7\u7a0b<\/p>\n<p id=\"JWbh-1770792553625-toc\" style=\"margin-left:80px\">1.3.3 \u963b\u585e\u4e0e\u975e\u963b\u585e<\/p>\n<p id=\"vhwU-1770792625679-toc\" style=\"margin-left:40px\">1.4\u00a0\u7ba1\u9053\u7684\u4e94\u5927\u7279\u6027\u548c\u56db\u79cd\u60c5\u51b5<\/p>\n<p id=\"Eky3-1770792673558-toc\" style=\"margin-left:0px\">2 \u547d\u540d\u7ba1\u9053<\/p>\n<p id=\"jxN5-1770792702507-toc\" style=\"margin-left:40px\">2.1 \u521b\u5efa\u547d\u540d\u7ba1\u9053<\/p>\n<p id=\"2.1.1%20mkfifo-toc\" style=\"margin-left:80px\">2.1.1 mkfifo<\/p>\n<p id=\"j0Vl-1770792819915-toc\" style=\"margin-left:40px\">2.2 \u547d\u540d\u7ba1\u9053\u7684\u4f7f\u7528<\/p>\n<p id=\"XM8W-1770792849232-toc\" style=\"margin-left:40px\">2.3 \u547d\u540d\u7ba1\u9053\u7684\u539f\u7406<\/p>\n<p id=\"eSDm-1770792884072-toc\" style=\"margin-left:40px\">2.4 \u5220\u9664\u547d\u540d\u7ba1\u9053<\/p>\n<p id=\"2.4.1%20unlink-toc\" style=\"margin-left:80px\">2.4.1 unlink<\/p>\n<hr id=\"hr-toc\" \/>\n<p>\u7ba1\u9053\u662f\u4e00\u4e2a\u975e\u5e38\u53e4\u8001\u7684\u8fdb\u7a0b\u901a\u4fe1\u7684\u65b9\u5f0f\u3002\u7ba1\u9053\u5141\u8bb8\u4e24\u4e2a\u76f8\u5173\u8fdb\u7a0b&#xff08;\u901a\u5e38\u662f\u7236\u5b50\u8fdb\u7a0b&#xff09;\u901a\u8fc7\u4e00\u4e2a\u5355\u5411\u6216\u53cc\u5411\u7684\u6570\u636e\u901a\u9053\u4ea4\u6362\u6570\u636e<\/p>\n<p>\u7ba1\u9053\u662f\u4e00\u4e2a\u57fa\u4e8e\u6587\u4ef6\u7cfb\u7edf\u7684\u4e00\u4e2a\u5185\u5b58\u7ea7\u7684\u5355\u5411\u901a\u4fe1\u7684\u6587\u4ef6&#xff0c;\u4e3b\u8981\u7528\u6765\u8fdb\u884c\u8fdb\u7a0b\u901a\u4fe1&#xff08;IPC&#xff09;<\/p>\n<p>&#xff08;1&#xff09;\u7ba1\u9053\u4f7f\u7528\u6837\u4f8b<\/p>\n<p>lz&#064;VM-8-15-ubuntu:~\/learn$ ls -l | grep pipe <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"377\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211070543-698c2a47bd938.png\" width=\"477\" \/><\/p>\n<h2 id=\"4WGh-1770792248637\" style=\"background-color:transparent\">1 \u533f\u540d\u7ba1\u9053<\/h2>\n<hr \/>\n<p>\u533f\u540d\u7ba1\u9053&#xff08;Anonymous Pipe&#xff09;\u662f Linux \u4e2d\u4e00\u79cd\u7ecf\u5178\u7684\u00a0\u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;\u00a0\u673a\u5236&#xff0c;\u4e3b\u8981\u7528\u4e8e\u00a0\u7236\u5b50\u8fdb\u7a0b\u00a0\u6216\u00a0\u5144\u5f1f\u8fdb\u7a0b\u00a0\u4e4b\u95f4\u7684\u5355\u5411\u6570\u636e\u901a\u4fe1\u3002\u5176\u6838\u5fc3\u7279\u70b9\u662f\u00a0\u5185\u5b58\u7ea7\u9ad8\u6548\u4f20\u8f93\u3001\u5185\u6838\u7f13\u51b2\u533a\u7ba1\u7406\u00a0\u548c\u00a0\u534a\u53cc\u5de5\u901a\u4fe1<\/p>\n<h3 id=\"OfKD-1770792283532\">1.1 \u521b\u5efa\u533f\u540d\u7ba1\u9053<\/h3>\n<h4 id=\"PSzD-1770792289903\">1.1.1 pipe<\/h4>\n<p>&#xff08;1&#xff09;\u529f\u80fd<\/p>\n<p>\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u00a0\u533f\u540d\u7ba1\u9053&#xff08;Anonymous Pipe&#xff09;&#xff0c;\u5b9e\u73b0\u7236\u5b50\u8fdb\u7a0b\u95f4\u7684\u5355\u5411\u901a\u4fe1<\/p>\n<p>&#xff08;2&#xff09;\u51fd\u6570\u539f\u578b<\/p>\n<p>#include &lt;unistd.h&gt;<br \/>\nint pipe(int pipefd[2]); <\/p>\n<p>  &#xff08;3&#xff09;\u53c2\u6570<\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\"><span style=\"background-color:#ececec\">pipefd[2]<\/span>&#xff1a;\u957f\u5ea6\u4e3a 2 \u7684\u6574\u578b\u6570\u7ec4&#xff0c;\u7528\u4e8e\u8fd4\u56de\u4e24\u4e2a\u6587\u4ef6\u63cf\u8ff0\u7b26&#xff1a;\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\"><span style=\"background-color:#ececec\">pipefd[0]<\/span>&#xff1a;\u7ba1\u9053\u7684\u00a0\u8bfb\u7aef&#xff08;\u7528\u4e8e\u00a0<span style=\"background-color:#ececec\">read()<\/span>&#xff09;\u3002<\/li>\n<li style=\"text-align:left\"><span style=\"background-color:#ececec\">pipefd[1]<\/span>&#xff1a;\u7ba1\u9053\u7684\u00a0\u5199\u7aef&#xff08;\u7528\u4e8e\u00a0<span style=\"background-color:#ececec\">write()<\/span>&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&#xff08;4&#xff09;\u8fd4\u56de\u503c<\/p>\n<p>\u6210\u529f\u8fd4\u56de\u00a00&#xff0c;\u5931\u8d25\u8fd4\u56de\u00a0-1\u00a0\u5e76\u8bbe\u7f6e\u00a0errno\u3002<\/p>\n<h3 id=\"Z4B2-1770792381158\">1.2 \u533f\u540d\u7ba1\u9053\u7684\u4f7f\u7528<\/h3>\n<p>&#xff08;1&#xff09;\u7236\u8fdb\u7a0b\u8bfb\u6570\u636e&#xff0c;\u5b50\u8fdb\u7a0b\u5199\u6570\u636e<\/p>\n<p>#include &lt;cstdio&gt;<br \/>\n#include &lt;iostream&gt;<br \/>\n#include &lt;string&gt;<br \/>\n#include &lt;unistd.h&gt;<br \/>\n#include &lt;sys\/types.h&gt;<br \/>\n#include &lt;sys\/wait.h&gt;<br \/>\nint main()<br \/>\n{<br \/>\n    \/\/ \u521b\u5efa\u7ba1\u9053<br \/>\n    int pipefd[2];<br \/>\n    int n&#061;pipe(pipefd);<br \/>\n    \/\/ \u521b\u5efa\u5b50\u8fdb\u7a0b<br \/>\n    pid_t pid &#061; fork();<br \/>\n    \/\/ \u901a\u4fe1<br \/>\n    if(pid &#061;&#061; -1)<br \/>\n    {<br \/>\n        perror(&#034;fork&#034;);<br \/>\n        return 1;<br \/>\n    }<br \/>\n    else if(pid &#061;&#061; 0)<br \/>\n    {<br \/>\n        \/\/ \u5173\u95ed\u8bfb\u7aef<br \/>\n        close(pipefd[0]);<br \/>\n        \/\/ \u5b50\u8fdb\u7a0b<br \/>\n        int cnt&#061;1;<br \/>\n        while(1)<br \/>\n        {<br \/>\n            \/\/ \u5199\u5165\u6570\u636e<br \/>\n            std::string msg&#061;&#034;my child process, pid &#061; &#034;;<br \/>\n            msg&#043;&#061;std::to_string(pid);<br \/>\n            msg &#043;&#061; &#034;, content &#061; &#034;;<br \/>\n            msg&#043;&#061;std::to_string(cnt);<br \/>\n            cnt&#043;&#043;;<\/p>\n<p>            \/\/ \u5199\u5165\u7ba1\u9053<br \/>\n            int n &#061; write(pipefd[1],msg.c_str(),msg.size());<br \/>\n            sleep(1);<br \/>\n        }<br \/>\n    }<br \/>\n    else<br \/>\n    {<br \/>\n        \/\/ \u5173\u95ed\u5199\u7aef<br \/>\n        close(pipefd[1]);<br \/>\n        \/\/ \u7236\u8fdb\u7a0b<br \/>\n        char buff[1024]&#061;{0};<br \/>\n        while(1)<br \/>\n        {<br \/>\n            \/\/ \u8bfb\u53d6\u6570\u636e<br \/>\n            int n&#061;read(pipefd[0],buff,sizeof(buff)-1);<br \/>\n            buff[n]&#061;&#039;\\\\0&#039;;<br \/>\n            std::cout&lt;&lt;buff&lt;&lt;std::endl;<br \/>\n            sleep(1);<br \/>\n        }<br \/>\n    }<br \/>\n     \/\/ \u7b49\u5f85\u5b50\u8fdb\u7a0b<br \/>\n    pid_t status&#061;waitpid(pid,NULL,0);<br \/>\n    return 0;<br \/>\n} <\/p>\n<p>   \u6ce8\u610f\u4e8b\u9879&#xff1a;<\/p>\n<p style=\"text-align:left\">&#xff08;1&#xff09;\u5fc5\u987b\u5173\u95ed\u672a\u4f7f\u7528\u7684\u7aef&#xff1a;<\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\">\u7236\u8fdb\u7a0b\u4e0d\u5173\u95ed\u8bfb\u7aef \u2192 \u5199\u6ee1\u7ba1\u9053\u540e\u00a0<span style=\"background-color:#ececec\">write()<\/span>\u00a0\u963b\u585e\u3002<\/li>\n<li style=\"text-align:left\">\u5b50\u8fdb\u7a0b\u4e0d\u5173\u95ed\u5199\u7aef \u2192 \u8bfb\u7a7a\u7ba1\u9053\u65f6\u00a0<span style=\"background-color:#ececec\">read()<\/span>\u00a0\u4e0d\u4f1a\u8fd4\u56de\u00a0<span style=\"background-color:#ececec\">EOF<\/span>&#xff08;\u8fd4\u56de0&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"text-align:left\">&#xff08;2&#xff09;\u521b\u5efa\u7ba1\u9053\u9700\u8981\u5728\u521b\u5efa\u5b50\u8fdb\u7a0b\u524d&#xff0c;\u624d\u80fd\u4fdd\u8bc1\u5b50\u8fdb\u7a0b\u4e0e\u7236\u8fdb\u7a0b\u901a\u4fe1\u7684\u662f\u540c\u4e00\u4e2a\u7ba1\u9053<\/p>\n<p style=\"text-align:left\"><span style=\"color:#404040\"><span style=\"background-color:#ffffff\">&#xff08;3&#xff09;\u7ba1\u9053\u662f\u5b57\u8282\u6d41&#xff0c;\u65e0\u6d88\u606f\u8fb9\u754c<\/span><\/span><\/p>\n<h3 id=\"6eTm-1770792453504\">1.3\u00a0\u5185\u6838\u5b9e\u73b0\u539f\u7406<\/h3>\n<h4 id=\"XUHJ-1770792470320\">1.3.1 \u5185\u6838\u6570\u636e\u7ed3\u6784<\/h4>\n<p>\u7ba1\u9053\u5728\u5185\u6838\u4e2d\u7531\u00a0pipe_inode_info\u00a0\u7ba1\u7406<\/p>\n<p>struct pipe_inode_info {<br \/>\n    struct page *pages[PIPE_DEF_BUFFERS];  \/\/ \u73af\u5f62\u7f13\u51b2\u533a&#xff08;\u9ed8\u8ba416\u9875&#xff09;<br \/>\n    unsigned int head;                     \/\/ \u5199\u6307\u9488<br \/>\n    unsigned int tail;                     \/\/ \u8bfb\u6307\u9488<br \/>\n    unsigned int readers;                  \/\/ \u8bfb\u7aef\u5f15\u7528\u8ba1\u6570<br \/>\n    unsigned int writers;                  \/\/ \u5199\u7aef\u5f15\u7528\u8ba1\u6570<br \/>\n    wait_queue_head_t wait;                \/\/ \u963b\u585e\u7b49\u5f85\u961f\u5217<br \/>\n    \/\/ &#8230;<br \/>\n}; <\/p>\n<h4 id=\"YYUD-1770792508523\">1.3.2 \u6570\u636e\u6d41\u52a8\u8fc7\u7a0b<\/h4>\n<p>&#xff08;1&#xff09;\u5199\u5165\u6570\u636e&#xff08;write(fd[1], buf, size)&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u68c0\u67e5\u7f13\u51b2\u533a\u5269\u4f59\u7a7a\u95f4&#xff0c;\u4e0d\u8db3\u5219\u963b\u585e&#xff08;\u9664\u975e\u00a0O_NONBLOCK&#xff09;\u3002<\/li>\n<li>\u6570\u636e\u4ece\u7528\u6237\u7a7a\u95f4\u62f7\u8d1d\u5230\u5185\u6838\u73af\u5f62\u7f13\u51b2\u533a\u3002<\/li>\n<li>\u66f4\u65b0\u00a0head\u00a0\u6307\u9488&#xff0c;\u5524\u9192\u7b49\u5f85\u8bfb\u7684\u8fdb\u7a0b\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u8bfb\u53d6\u6570\u636e&#xff08;read(fd[0], buf, size)&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u68c0\u67e5\u7f13\u51b2\u533a\u6570\u636e\u91cf&#xff0c;\u4e3a\u7a7a\u5219\u963b\u585e&#xff08;\u9664\u975e\u00a0O_NONBLOCK&#xff09;\u3002<\/li>\n<li>\u6570\u636e\u4ece\u5185\u6838\u7f13\u51b2\u533a\u62f7\u8d1d\u5230\u7528\u6237\u7a7a\u95f4\u3002<\/li>\n<li>\u66f4\u65b0\u00a0tail\u00a0\u6307\u9488&#xff0c;\u5524\u9192\u7b49\u5f85\u5199\u7684\u8fdb\u7a0b\u3002<\/li>\n<\/ul>\n<h4 id=\"JWbh-1770792553625\">1.3.3 \u963b\u585e\u4e0e\u975e\u963b\u585e<\/h4>\n<p>&#xff08;1&#xff09;\u963b\u585e\u6a21\u5f0f&#xff08;\u9ed8\u8ba4&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u8bfb\u7a7a\u7ba1\u9053\u65f6&#xff0c;read()\u00a0\u963b\u585e&#xff0c;\u76f4\u5230\u6709\u6570\u636e\u6216\u5199\u7aef\u5173\u95ed\u3002<\/li>\n<li>\u5199\u6ee1\u7ba1\u9053\u65f6&#xff0c;write()\u00a0\u963b\u585e&#xff0c;\u76f4\u5230\u6709\u7a7a\u95f4\u3002<\/li>\n<\/ul>\n<p>&#xff08;2&#xff09;\u975e\u963b\u585e\u6a21\u5f0f<\/p>\n<p>fcntl(pipefd[0], F_SETFL, O_NONBLOCK);  \/\/ \u8bfb\u7aef\u975e\u963b\u585e<br \/>\nfcntl(pipefd[1], F_SETFL, O_NONBLOCK);  \/\/ \u5199\u7aef\u975e\u963b\u585e <\/p>\n<ul>\n<li>\u8bfb\u7a7a\u7ba1\u9053\u65f6&#xff0c;read()\u00a0\u8fd4\u56de\u00a0-1&#xff0c;errno&#061;EAGAIN\u3002<\/li>\n<li>\u5199\u6ee1\u7ba1\u9053\u65f6&#xff0c;write()\u00a0\u8fd4\u56de\u00a0-1&#xff0c;errno&#061;EAGAIN\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1643\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211070543-698c2a47d319f.png\" width=\"1662\" \/><\/p>\n<h3 id=\"vhwU-1770792625679\">1.4\u00a0\u7ba1\u9053\u7684\u4e94\u5927\u7279\u6027\u548c\u56db\u79cd\u60c5\u51b5<\/h3>\n<p>  &#xff08;1&#xff09;\u4e94\u5927\u7279\u6027<\/p>\n<ul style=\"margin-left:0px;margin-right:0px\">\n<li style=\"text-align:left\">\u5e38\u7528\u4e8e\u5177\u6709\u8840\u7f18\u5173\u7cfb\u7684\u8fdb\u7a0b\u8fdb\u884cPIC<\/li>\n<li style=\"text-align:left\">\u5355\u5411\u901a\u4fe1<\/li>\n<li style=\"text-align:left\">\u533f\u540d\u7ba1\u9053\u7684\u751f\u547d\u5468\u671f\u968f\u8fdb\u7a0b<\/li>\n<li style=\"text-align:left\">\u533f\u540d\u7ba1\u9053\u662f\u9762\u5411\u5b57\u8282\u6d41\u7684<\/li>\n<li style=\"text-align:left\">\u7ba1\u9053\u81ea\u5e26\u540c\u6b65\u673a\u5236<\/li>\n<\/ul>\n<p>  &#xff08;2&#xff09;\u56db\u79cd\u60c5\u51b5<\/p>\n<ul style=\"margin-left:0px;margin-right:0px\">\n<li style=\"text-align:left\">\u5199\u7aef\u4e0d\u5173&#xff0c;\u5199\u7aef\u4e0d\u5199\u2014\u2014\u7ba1\u9053\u91cc\u6ca1\u6709\u6570\u636e&#xff0c;\u8bfb\u7aef\u5c31\u4f1a\u5904\u4e8e\u963b\u585e\u72b6\u6001<\/li>\n<li style=\"text-align:left\">\u8bfb\u7aef\u4e0d\u5173&#xff0c;\u8bfb\u7aef\u4e0d\u8bfb\u2014\u2014\u5199\u7aef\u5199\u6ee1\u7ba1\u9053&#xff0c;\u5c31\u4e0d\u4f1a\u8fdb\u884c\u5199\u5165<\/li>\n<li style=\"text-align:left\">\u5199\u7aef\u4e0d\u5199&#xff0c;\u5199\u7aef\u5173\u95ed\u2014\u2014\u8bfb\u7aef\u4e0d\u4f1a\u8bfb\u5230\u6570\u636e&#xff0c;read\u7684\u8fd4\u56de\u503c\u4e3a0\u8868\u793a\u5df2\u7ecf\u8bfb\u5230\u6587\u4ef6\u7ed3\u5c3e<\/li>\n<li style=\"text-align:left\">\u5199\u7aef\u5199\u5165&#xff0c;\u8bfb\u7aef\u5173\u95ed\u2014\u2014\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u7ed3\u675f\u5199\u7aef\u8fdb\u7a0b<\/li>\n<\/ul>\n<h2 id=\"Eky3-1770792673558\">2 \u547d\u540d\u7ba1\u9053<\/h2>\n<hr \/>\n<p> <span style=\"color:#404040\"><span style=\"background-color:#ffffff\">\u547d\u540d\u7ba1\u9053&#xff08;Named Pipe&#xff0c;\u4e5f\u79f0\u4e3a\u00a0<\/span><\/span><br \/>\n <span style=\"color:#404040\"><span style=\"background-color:#ffffff\">FIFO<\/span><\/span><br \/>\n <span style=\"color:#404040\"><span style=\"background-color:#ffffff\">&#xff0c;\u5373\u00a0<\/span><\/span><br \/>\n <span style=\"color:#404040\"><span style=\"background-color:#ffffff\">First In First Out<\/span><\/span><br \/>\n <span style=\"color:#404040\"><span style=\"background-color:#ffffff\">&#xff09;\u662f Linux \u4e2d\u4e00\u79cd\u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff08;IPC, Inter-Process Communication&#xff09;\u7684\u65b9\u5f0f\u3002<\/span><\/span><\/p>\n<p> <span style=\"color:#404040\"><span style=\"background-color:#ffffff\">\u5b83\u7c7b\u4f3c\u4e8e\u533f\u540d\u7ba1\u9053&#xff08;<\/span><\/span><br \/>\n <span style=\"color:#404040\"><span style=\"background-color:#ececec\">|<\/span><\/span><br \/>\n <span style=\"color:#404040\"><span style=\"background-color:#ffffff\">&#xff09;<\/span><\/span><\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\">\u533f\u540d\u7ba1\u9053\u00a0\u53ea\u80fd\u5728\u7236\u5b50\u8fdb\u7a0b\u6216\u76f8\u5173\u8fdb\u7a0b\u4e4b\u95f4\u4f7f\u7528\u3002<\/li>\n<li style=\"text-align:left\">\u547d\u540d\u7ba1\u9053\u00a0\u901a\u8fc7\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u7279\u6b8a\u6587\u4ef6&#xff08;FIFO \u6587\u4ef6&#xff09;\u8fdb\u884c\u901a\u4fe1&#xff0c;\u5141\u8bb8\u00a0\u65e0\u5173\u8054\u7684\u8fdb\u7a0b\u00a0\u8fdb\u884c\u6570\u636e\u4ea4\u6362\u3002<\/li>\n<\/ul>\n<p> <span style=\"color:#646a73\">FIFO&#xff08;\u547d\u540d\u7ba1\u9053&#xff09;\u4e0epipe&#xff08;\u533f\u540d\u7ba1\u9053&#xff09;\u4e4b\u95f4\u552f\u2f00\u7684\u533a\u522b\u5728\u5b83\u4eec\u521b\u5efa\u4e0e\u6253\u5f00\u7684\u2f45\u5f0f\u4e0d\u540c&#xff0c;\u2f00\u4f46\u8fd9\u4e9b\u2f2f\u4f5c\u5b8c\u6210\u4e4b\u540e&#xff0c;<\/span><br \/>\n <span style=\"color:#646a73\">\u5b83\u4eec\u5177\u6709\u76f8\u540c\u7684\u8bed\u4e49\u3002\u547d\u540d\u7ba1\u9053\u4e3b\u8981\u89e3\u51b3\u6beb\u65e0\u5173\u7cfb\u7684\u8fdb\u7a0b\u4e4b\u95f4&#xff0c;\u8fdb\u884c\u6587\u4ef6\u7ea7\u8fdb\u7a0b\u901a\u4fe1<\/span><\/p>\n<h3 id=\"jxN5-1770792702507\">2.1 \u521b\u5efa\u547d\u540d\u7ba1\u9053<\/h3>\n<p>&#xff08;1&#xff09;\u547d\u4ee4\u884c\u521b\u5efa<\/p>\n<p>\/\/ \u4f7f\u7528 mkfifo \u547d\u4ee4\u521b\u5efa FIFO \u6587\u4ef6<br \/>\nmkfifo mypipe<br \/>\n\/\/ \u4f7f\u7528 mkfifo \u547d\u4ee4\u521b\u5efa FIFO \u6587\u4ef6&#xff0c;\u6307\u5b9a\u6743\u9650&#xff08;\u5982 660&#xff09;<br \/>\nmkfifo -m 660 mypipe <\/p>\n<h4 id=\"2.1.1%20mkfifo\">2.1.1 mkfifo<\/h4>\n<p>&#xff08;1&#xff09;\u529f\u80fd<\/p>\n<p>mkfifo\u00a0\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u00a0FIFO&#xff08;\u547d\u540d\u7ba1\u9053&#xff09;&#xff0c;\u5b83\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6587\u4ef6\u7c7b\u578b&#xff0c;\u5141\u8bb8\u4e0d\u540c\u8fdb\u7a0b\u901a\u8fc7\u6587\u4ef6\u7cfb\u7edf\u8fdb\u884c\u901a\u4fe1\u3002FIFO \u9075\u5faa\u5148\u8fdb\u5148\u51fa&#xff08;First In First Out&#xff09;\u539f\u5219\u3002<\/p>\n<p>&#xff08;2&#xff09;\u51fd\u6570\u539f\u578b<\/p>\n<p>#include &lt;sys\/types.h&gt;<br \/>\n#include &lt;sys\/stat.h&gt;<\/p>\n<p>int mkfifo(const char *pathname, mode_t mode); <\/p>\n<p>  &#xff08;3&#xff09;\u53c2\u6570<\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\">pathname : \u521b\u5efa\u7684\u6709\u540d\u7ba1\u9053\u7684\u540d\u5b57<\/li>\n<li style=\"text-align:left\">mode : \u521b\u5efa\u6587\u4ef6\u7684\u6743\u9650<\/li>\n<\/ul>\n<p>  &#xff08;4&#xff09;\u8fd4\u56de\u503c<\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\">\u6210\u529f\u8fd4\u56de\u00a0<span style=\"background-color:#ececec\">0<\/span>&#xff0c;\u5931\u8d25\u8fd4\u56de\u00a0<span style=\"background-color:#ececec\">-1<\/span>\u00a0\u5e76\u8bbe\u7f6e\u00a0<span style=\"background-color:#ececec\">errno<\/span>\u3002<\/li>\n<\/ul>\n<h3 id=\"j0Vl-1770792819915\">2.2 \u547d\u540d\u7ba1\u9053\u7684\u4f7f\u7528<\/h3>\n<p>\u547d\u540d\u7ba1\u9053\u7684\u4f7f\u7528\u672c\u8d28\u5c31\u662f\u5bf9\u4e00\u4e2a\u6253\u5f00\u7684\u6587\u4ef6\u8fdb\u884c\u64cd\u4f5c<\/p>\n<p>\u793a\u4f8b\u4e00&#xff1a;\u2f64\u547d\u540d\u7ba1\u9053\u5b9e\u73b0 server&#xff08;\u670d\u52a1\u7aef&#xff09; &amp; client&#xff08;\u5ba2\u6237\u7aef&#xff09; \u901a\u4fe1<\/p>\n<p>\u6709\u540d\u7ba1\u9053\u7684\u5b66\u4e60\u4ee3\u7801&#xff0c;\u4f7f\u7528\u6709\u540d\u7ba1\u9053\u7b80\u5355\u7684\u5b9e\u73b0\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u7684\u8fdb\u7a0b\u901a\u4fe1 \u00b7 d2c9787 \u00b7 lv-zhuo\/AsCent &#8211; Gitee.com<\/p>\n<h3 id=\"XM8W-1770792849232\" style=\"text-align:left\">2.3 \u547d\u540d\u7ba1\u9053\u7684\u539f\u7406<\/h3>\n<p style=\"text-align:left\">&#xff08;1&#xff09;FIFO\u00a0\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u00a0\u6587\u4ef6\u7c7b\u578b&#xff0c;\u4f46\u00a0\u4e0d\u5b58\u50a8\u5b9e\u9645\u6570\u636e&#xff0c;\u4ec5\u4f5c\u4e3a\u6570\u636e\u901a\u9053\u3002<\/p>\n<p style=\"text-align:left\">&#xff08;2&#xff09;\u5199\u5165\u7aef (<span style=\"background-color:#ececec\">&gt;<\/span>) \u548c\u8bfb\u53d6\u7aef (<span style=\"background-color:#ececec\">&lt;<\/span>)\u00a0\u5fc5\u987b\u540c\u65f6\u5b58\u5728&#xff0c;\u5426\u5219&#xff1a;<\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\">\u5982\u679c\u53ea\u6709\u5199\u5165\u7aef&#xff0c;\u5199\u5165\u64cd\u4f5c\u4f1a\u00a0\u963b\u585e&#xff0c;\u76f4\u5230\u6709\u8fdb\u7a0b\u8bfb\u53d6\u3002<\/li>\n<li style=\"text-align:left\">\u5982\u679c\u53ea\u6709\u8bfb\u53d6\u7aef&#xff0c;\u8bfb\u53d6\u64cd\u4f5c\u4f1a\u00a0\u963b\u585e&#xff0c;\u76f4\u5230\u6709\u8fdb\u7a0b\u5199\u5165\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1677\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211070545-698c2a491e617.png\" width=\"2795\" \/><\/p>\n<h3 id=\"eSDm-1770792884072\">2.4 \u5220\u9664\u547d\u540d\u7ba1\u9053<\/h3>\n<p>&#xff08;1&#xff09;\u547d\u4ee4\u884c\u5220\u9664<\/p>\n<p>FIFO \u6587\u4ef6\u53ea\u662f\u666e\u901a\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u7528\u00a0rm\u00a0\u5220\u9664<\/p>\n<p>rm mkpipe <\/p>\n<h4 id=\"2.4.1%20unlink\">2.4.1 unlink<\/h4>\n<p>&#xff08;1&#xff09;\u529f\u80fd<\/p>\n<p>mkfifo\u00a0\u7528\u4e8e\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u5220\u9664\u4e00\u4e2a\u6307\u5b9a\u540d\u5b57\u7684\u6587\u4ef6<\/p>\n<p>&#xff08;2&#xff09;\u51fd\u6570\u539f\u578b<\/p>\n<p>#include &lt;fcntl.h&gt;<br \/>\n#include &lt;unistd.h&gt;<\/p>\n<p>int unlink(const char *pathname); <\/p>\n<p>  &#xff08;3&#xff09;\u53c2\u6570<\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\">pathname : \u5220\u9664\u6587\u4ef6\u7684\u540d\u5b57<\/li>\n<\/ul>\n<p>  &#xff08;4&#xff09;\u8fd4\u56de\u503c<\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\">\u6210\u529f\u8fd4\u56de\u00a0<span style=\"background-color:#ececec\">0<\/span>&#xff0c;\u5931\u8d25\u8fd4\u56de\u00a0<span style=\"background-color:#ececec\">-1<\/span>\u00a0\u5e76\u8bbe\u7f6e\u00a0<span style=\"background-color:#ececec\">errno<\/span>\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55<br \/>\n1 \u533f\u540d\u7ba1\u9053<br \/>\n1.1 \u521b\u5efa\u533f\u540d\u7ba1\u9053<br \/>\n1.1.1 pipe<br \/>\n1.2 \u533f\u540d\u7ba1\u9053\u7684\u4f7f\u7528<br \/>\n1.3\u00a0\u5185\u6838\u5b9e\u73b0\u539f\u7406<br \/>\n1.3.1 \u5185\u6838\u6570\u636e\u7ed3\u6784<br \/>\n1.3.2 \u6570\u636e\u6d41\u52a8\u8fc7\u7a0b<br \/>\n1.3.3 \u963b\u585e\u4e0e\u975e\u963b\u585e<br \/>\n1.4\u00a0\u7ba1\u9053\u7684\u4e94\u5927\u7279\u6027\u548c\u56db\u79cd\u60c5\u51b5<br \/>\n2 \u547d\u540d\u7ba1\u9053<br \/>\n2.1 \u521b\u5efa\u547d\u540d\u7ba1\u9053<br \/>\n2.1.1 mkfifo<br \/>\n2.2 \u547d\u540d\u7ba1\u9053\u7684\u4f7f\u7528<br \/>\n2.3 \u547d\u540d\u7ba1\u9053\u7684\u539f\u7406<br \/>\n2.4 \u5220\u9664\u547d\u540d\u7ba1\u9053<br \/>\n2.4.1 unlink \u7ba1\u9053\u662f\u4e00\u4e2a\u975e\u5e38\u53e4\u8001\u7684\u8fdb\u7a0b\u901a\u4fe1\u7684\u65b9\u5f0f\u3002\u7ba1\u9053\u5141\u8bb8\u4e24\u4e2a\u76f8\u5173\u8fdb\u7a0b&amp;#xff0<\/p>\n","protected":false},"author":2,"featured_media":75130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-75133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053 - \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\/75133.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 1 \u533f\u540d\u7ba1\u9053 1.1 \u521b\u5efa\u533f\u540d\u7ba1\u9053 1.1.1 pipe 1.2 \u533f\u540d\u7ba1\u9053\u7684\u4f7f\u7528 1.3\u00a0\u5185\u6838\u5b9e\u73b0\u539f\u7406 1.3.1 \u5185\u6838\u6570\u636e\u7ed3\u6784 1.3.2 \u6570\u636e\u6d41\u52a8\u8fc7\u7a0b 1.3.3 \u963b\u585e\u4e0e\u975e\u963b\u585e 1.4\u00a0\u7ba1\u9053\u7684\u4e94\u5927\u7279\u6027\u548c\u56db\u79cd\u60c5\u51b5 2 \u547d\u540d\u7ba1\u9053 2.1 \u521b\u5efa\u547d\u540d\u7ba1\u9053 2.1.1 mkfifo 2.2 \u547d\u540d\u7ba1\u9053\u7684\u4f7f\u7528 2.3 \u547d\u540d\u7ba1\u9053\u7684\u539f\u7406 2.4 \u5220\u9664\u547d\u540d\u7ba1\u9053 2.4.1 unlink \u7ba1\u9053\u662f\u4e00\u4e2a\u975e\u5e38\u53e4\u8001\u7684\u8fdb\u7a0b\u901a\u4fe1\u7684\u65b9\u5f0f\u3002\u7ba1\u9053\u5141\u8bb8\u4e24\u4e2a\u76f8\u5173\u8fdb\u7a0b&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/75133.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-11T07:05:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211070543-698c2a47bd938.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\/75133.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/75133.html\",\"name\":\"Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-11T07:05:48+00:00\",\"dateModified\":\"2026-02-11T07:05:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/75133.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/75133.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/75133.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053\"}]},{\"@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":"Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053 - \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\/75133.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 1 \u533f\u540d\u7ba1\u9053 1.1 \u521b\u5efa\u533f\u540d\u7ba1\u9053 1.1.1 pipe 1.2 \u533f\u540d\u7ba1\u9053\u7684\u4f7f\u7528 1.3\u00a0\u5185\u6838\u5b9e\u73b0\u539f\u7406 1.3.1 \u5185\u6838\u6570\u636e\u7ed3\u6784 1.3.2 \u6570\u636e\u6d41\u52a8\u8fc7\u7a0b 1.3.3 \u963b\u585e\u4e0e\u975e\u963b\u585e 1.4\u00a0\u7ba1\u9053\u7684\u4e94\u5927\u7279\u6027\u548c\u56db\u79cd\u60c5\u51b5 2 \u547d\u540d\u7ba1\u9053 2.1 \u521b\u5efa\u547d\u540d\u7ba1\u9053 2.1.1 mkfifo 2.2 \u547d\u540d\u7ba1\u9053\u7684\u4f7f\u7528 2.3 \u547d\u540d\u7ba1\u9053\u7684\u539f\u7406 2.4 \u5220\u9664\u547d\u540d\u7ba1\u9053 2.4.1 unlink \u7ba1\u9053\u662f\u4e00\u4e2a\u975e\u5e38\u53e4\u8001\u7684\u8fdb\u7a0b\u901a\u4fe1\u7684\u65b9\u5f0f\u3002\u7ba1\u9053\u5141\u8bb8\u4e24\u4e2a\u76f8\u5173\u8fdb\u7a0b&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/75133.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-11T07:05:48+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211070543-698c2a47bd938.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\/75133.html","url":"https:\/\/www.wsisp.com\/helps\/75133.html","name":"Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-11T07:05:48+00:00","dateModified":"2026-02-11T07:05:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/75133.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/75133.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/75133.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u8fdb\u7a0b\u901a\u4fe1\u2014\u2014\u7ba1\u9053"}]},{"@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\/75133","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=75133"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/75133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/75130"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=75133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=75133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=75133"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=75133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}