{"id":95755,"date":"2026-08-26T21:17:45","date_gmt":"2026-08-26T13:17:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/95755.html"},"modified":"2026-08-26T21:17:45","modified_gmt":"2026-08-26T13:17:45","slug":"linux%e5%85%a5%e9%97%a8day30%ef%bc%88%e5%a4%9a%e7%ba%bf%e7%a8%8b%e3%80%81%e8%bf%9b%e7%a8%8b%e9%97%b4%e9%80%9a%e4%bf%a1%e3%80%81%e7%bd%91%e7%bb%9c%e7%bc%96%e7%a8%8b%e4%b8%8e%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/95755.html","title":{"rendered":"Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\uff09"},"content":{"rendered":"<p>\u4e0a\u4e00\u7bc7\u6211\u4eec\u68b3\u7406\u4e86 Linux \u6587\u4ef6\u7f16\u7a0b&#xff0c;\u5305\u542b\u6807\u51c6 IO\u3001\u6587\u4ef6 IO\u3001\u76ee\u5f55\u64cd\u4f5c\u3001framebuffer \u5e27\u7f13\u51b2\u4e0e\u65e5\u5fd7\u6a21\u5757\u3002\u672c\u7bc7\u7ee7\u7eed\u5f80\u4e0b\u5b66\u4e60\u591a\u7ebf\u7a0b\u9ad8\u7ea7\u3001IPC \u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001Socket \u7f51\u7edc\u7f16\u7a0b\u3001\u7b80\u5355\u6570\u636e\u5e93\u5f00\u53d1&#xff0c;\u628a Linux \u5e94\u7528\u5f00\u53d1\u56db\u5927\u6a21\u5757\u8865\u5168\u3002<\/p>\n<h3>\u56de\u987e\u524d\u6587\u8981\u70b9\u901f\u89c8<\/h3>\n<p>\u6587\u4ef6\u7f16\u7a0b\u4e24\u5927\u4f53\u7cfb&#xff1a;<\/p>\n<li>\u6807\u51c6 IO&#xff1a;C \u5e93\u51fd\u6570&#xff0c;FILE*\u6587\u4ef6\u6d41&#xff0c;\u81ea\u5e26\u7f13\u51b2\u533a&#xff0c;\u53ef\u79fb\u690d\u6027\u5f3a&#xff1b;<\/li>\n<li>\u6587\u4ef6 IO&#xff08;\u7cfb\u7edf\u8c03\u7528&#xff09;&#xff1a;open\/read\/write\/close&#xff0c;\u6587\u4ef6\u63cf\u8ff0\u7b26 fd&#xff0c;\u65e0\u7528\u6237\u5c42\u7f13\u51b2&#xff0c;\u8d34\u8fd1\u5185\u6838&#xff1b;<\/li>\n<li>\u62d3\u5c55&#xff1a;\u76ee\u5f55 IOopendir\/readdir\u3001mmap \u5185\u5b58\u6620\u5c04\u64cd\u4f5c\/dev\/fb0\u5e27\u7f13\u5b58\u3001\u65e5\u5fd7\u6587\u4ef6\u5c01\u88c5\u3002<\/li>\n<p>\u8fdb\u7a0b&#xff1a;\u8d44\u6e90\u5206\u914d\u6700\u5c0f\u5355\u4f4d&#xff1b;\u7ebf\u7a0b&#xff1a;CPU \u8c03\u5ea6\u6700\u5c0f\u5355\u4f4d\u3002 \u8fdb\u7a0b\u62e5\u6709\u5b8c\u6574\u72ec\u7acb\u865a\u62df\u5730\u5740\u7a7a\u95f4&#xff1b;\u540c\u4e00\u8fdb\u7a0b\u5185\u591a\u4e2a\u7ebf\u7a0b\u5171\u4eab\u5806\u3001\u5168\u5c40\u6570\u636e\u3001\u4ee3\u7801\u6bb5&#xff0c;\u6bcf\u4e2a\u7ebf\u7a0b\u79c1\u6709\u6808\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u591a\u7ebf\u7a0b\u9ad8\u7ea7\u77e5\u8bc6\u70b9<\/h3>\n<h4>1. \u7ebf\u7a0b\u57fa\u7840\u51fd\u6570\u56de\u987e<\/h4>\n<p>int pthread_create(pthread_t *thread, const pthread_attr_t *attr,<br \/>\n                   void *(*start_routine) (void *), void *arg);<\/p>\n<p>\u7f16\u8bd1\u5fc5\u987b\u52a0 -pthread \u53c2\u6570\u3002<\/p>\n<h5>\u7ebf\u7a0b\u9000\u51fa\u3001\u8d44\u6e90\u56de\u6536<\/h5>\n<li>pthread_exit(void *retval)&#xff1a;\u7ebf\u7a0b\u4e3b\u52a8\u9000\u51fa&#xff0c;\u53ef\u4ee5\u643a\u5e26\u8fd4\u56de\u503c&#xff1b;<\/li>\n<li>pthread_join(pthread_t thread, void **retval)&#xff1a;\u963b\u585e\u7b49\u5f85\u56de\u6536\u7ebf\u7a0b&#xff0c;\u7c7b\u4f3c\u8fdb\u7a0b wait&#xff1b;\u5982\u679c\u4e0d join&#xff0c;\u4f1a\u4ea7\u751f\u7ebf\u7a0b\u50f5\u5c38&#xff0c;\u5185\u5b58\u6cc4\u6f0f&#xff1b;<\/li>\n<li>pthread_detach(pthread_t thread)&#xff1a;\u7ebf\u7a0b\u5206\u79bb\u3002\u5206\u79bb\u4e4b\u540e\u7ebf\u7a0b\u7ed3\u675f\u81ea\u52a8\u91ca\u653e\u8d44\u6e90&#xff0c;\u4e0d\u9700\u8981 join \u56de\u6536\u3002\u9002\u5408\u540e\u53f0\u5de5\u4f5c\u7ebf\u7a0b\u3002<\/li>\n<p>\u26a0\ufe0f\u6ce8\u610f&#xff1a;\u4e3b\u7ebf\u7a0b\u5982\u679creturn \/ exit()&#xff0c;\u6574\u4e2a\u8fdb\u7a0b\u6240\u6709\u7ebf\u7a0b\u5168\u90e8\u9500\u6bc1&#xff1b;\u4e3b\u7ebf\u7a0b\u8c03\u7528pthread_exit()&#xff0c;\u4e3b\u7ebf\u7a0b\u9000\u51fa&#xff0c;\u5176\u4ed6\u5b50\u7ebf\u7a0b\u53ef\u4ee5\u7ee7\u7eed\u8fd0\u884c\u3002<\/p>\n<h4>2. \u7ebf\u7a0b\u540c\u6b65&#xff1a;\u4e92\u65a5\u9501 pthread_mutex_t<\/h4>\n<p>\u591a\u7ebf\u7a0b\u5171\u4eab\u5168\u5c40\u53d8\u91cf&#xff0c;\u4f1a\u4ea7\u751f\u7ade\u6001\u6761\u4ef6&#xff08;\u6570\u636e\u6df7\u4e71&#xff09;\u3002\u4e92\u65a5\u9501\u7528\u6765\u4fdd\u62a4\u5171\u4eab\u8d44\u6e90&#xff0c;\u4fdd\u8bc1\u540c\u4e00\u65f6\u95f4\u53ea\u6709\u4e00\u4e2a\u7ebf\u7a0b\u8bbf\u95ee\u4e34\u754c\u8d44\u6e90\u3002<\/p>\n<p>\u6838\u5fc3 API&#xff1a;<\/p>\n<p>pthread_mutex_init();    \/\/\u521d\u59cb\u5316\u9501<br \/>\npthread_mutex_lock();   \/\/\u52a0\u9501&#xff0c;\u62ff\u4e0d\u5230\u5c31\u963b\u585e<br \/>\npthread_mutex_unlock(); \/\/\u89e3\u9501<br \/>\npthread_mutex_destroy();\/\/\u9500\u6bc1\u9501<\/p>\n<p>\u4f7f\u7528\u8303\u5f0f&#xff1a;<\/p>\n<p>pthread_mutex_t mutex;<br \/>\n\/\/\u4e34\u754c\u533a\u5f00\u59cb<br \/>\npthread_mutex_lock(&amp;mutex);<br \/>\n\/\/\u64cd\u4f5c\u5171\u4eab\u5168\u5c40\u53d8\u91cf<br \/>\npthread_mutex_unlock(&amp;mutex);<br \/>\n\/\/\u4e34\u754c\u533a\u7ed3\u675f<\/p>\n<h4>3. \u6761\u4ef6\u53d8\u91cf pthread_cond_t<\/h4>\n<p>\u4e92\u65a5\u9501\u89e3\u51b3 \u201c\u4e92\u65a5\u8bbf\u95ee\u201d&#xff1b;\u6761\u4ef6\u53d8\u91cf\u89e3\u51b3\u7ebf\u7a0b\u7b49\u5f85 \/ \u5524\u9192&#xff0c;\u751f\u4ea7\u8005\u6d88\u8d39\u8005\u6a21\u578b\u5fc5\u5907\u3002 \u5e38\u7528\u63a5\u53e3&#xff1a;<\/p>\n<p>pthread_cond_init();<br \/>\npthread_cond_wait();    \/\/\u91ca\u653e\u9501\u5e76\u963b\u585e\u7b49\u5f85\u6761\u4ef6&#xff0c;\u88ab\u5524\u9192\u540e\u91cd\u65b0\u83b7\u53d6\u9501<br \/>\npthread_cond_signal();  \/\/\u5524\u9192\u4e00\u4e2a\u7b49\u5f85\u7ebf\u7a0b<br \/>\npthread_cond_broadcast();\/\/\u5524\u9192\u5168\u90e8\u7b49\u5f85\u7ebf\u7a0b<br \/>\npthread_cond_destroy();<\/p>\n<p>\u7ecf\u5178\u6a21\u578b&#xff1a;\u751f\u4ea7\u8005\u5f80\u961f\u5217\u653e\u6570\u636e&#xff0c;\u6761\u4ef6\u53d8\u91cf\u53d1\u4fe1\u53f7&#xff1b;\u6d88\u8d39\u8005cond_wait\u963b\u585e&#xff0c;\u6536\u5230\u4fe1\u53f7\u8bfb\u53d6\u961f\u5217\u3002<\/p>\n<h4>4. \u7ebf\u7a0b\u5c5e\u6027<\/h4>\n<ul>\n<li>\u5206\u79bb\u5c5e\u6027&#xff1a;\u521b\u5efa\u7ebf\u7a0b\u7684\u65f6\u5019\u8bbe\u7f6e\u5206\u79bb\u5c5e\u6027&#xff0c;\u7b49\u4ef7\u4e8epthread_detach&#xff1b;<\/li>\n<li>\u6808\u5927\u5c0f&#xff1a;\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7ebf\u7a0b\u6808\u7a7a\u95f4&#xff0c;\u5d4c\u5165\u5f0f\u5f00\u53d1\u5e38\u7528\u3002<\/li>\n<\/ul>\n<h4>\u8fdb\u7a0b VS \u7ebf\u7a0b\u5b8c\u6574\u5bf9\u6bd4<\/h4>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u5bf9\u6bd4\u9879\u8fdb\u7a0b\u7ebf\u7a0b<\/tr>\n<tbody>\n<tr>\n<td>\u8c03\u5ea6\u5355\u4f4d<\/td>\n<td>\u8d44\u6e90\u5206\u914d\u6700\u5c0f\u5355\u4f4d<\/td>\n<td>CPU \u8c03\u5ea6\u6700\u5c0f\u5355\u4f4d<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58\u7a7a\u95f4<\/td>\n<td>\u5b8c\u5168\u72ec\u7acb\u865a\u62df\u5730\u5740\u7a7a\u95f4<\/td>\n<td>\u5171\u4eab\u8fdb\u7a0b\u8d44\u6e90&#xff0c;\u4ec5\u6808\u79c1\u6709<\/td>\n<\/tr>\n<tr>\n<td>\u521b\u5efa\u5f00\u9500<\/td>\n<td>\u5927&#xff0c;\u62f7\u8d1d\u9875\u8868\u3001\u5185\u5b58<\/td>\n<td>\u5f88\u5c0f&#xff0c;\u4ec5\u5206\u914d\u7ebf\u7a0b\u6808<\/td>\n<\/tr>\n<tr>\n<td>\u5d29\u6e83\u5f71\u54cd<\/td>\n<td>\u4e00\u4e2a\u8fdb\u7a0b\u5d29\u6e83\u4e92\u4e0d\u5e72\u6270<\/td>\n<td>\u4e00\u4e2a\u7ebf\u7a0b\u5d29\u6e83&#xff0c;\u6574\u4e2a\u8fdb\u7a0b\u5168\u90e8\u9000\u51fa<\/td>\n<\/tr>\n<tr>\n<td>\u901a\u4fe1\u65b9\u5f0f<\/td>\n<td>IPC \u7ba1\u9053\u3001\u6d88\u606f\u961f\u5217\u3001\u5171\u4eab\u5185\u5b58\u3001socket<\/td>\n<td>\u76f4\u63a5\u8bfb\u5199\u5168\u5c40\u53d8\u91cf&#xff0c;\u914d\u5408\u9501\u4e0e\u6761\u4ef6\u53d8\u91cf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5751\u70b9\u603b\u7ed3&#xff1a;<\/p>\n<li>fork \u4e4b\u540e\u5b50\u8fdb\u7a0b\u53ea\u4f1a\u590d\u5236\u8c03\u7528 fork \u7684\u90a3\u4e00\u4e2a\u7ebf\u7a0b&#xff0c;\u5176\u4ed6\u7ebf\u7a0b\u5168\u90e8\u6d88\u5931&#xff1b;\u591a\u7ebf\u7a0b\u7a0b\u5e8f\u5c3d\u91cf\u907f\u514d fork\u3002<\/li>\n<li>\u9501\u5fd8\u8bb0\u91ca\u653e \u2192 \u6b7b\u9501&#xff1b;\u52a0\u9501\u987a\u5e8f\u4e0d\u4e00\u81f4\u4e5f\u4f1a\u6b7b\u9501\u3002<\/li>\n<hr \/>\n<h3>\u4e8c\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1 IPC<\/h3>\n<p>\u8fdb\u7a0b\u865a\u62df\u5730\u5740\u76f8\u4e92\u9694\u79bb&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u8bbf\u95ee\u5bf9\u65b9\u5185\u5b58&#xff0c;\u5fc5\u987b\u501f\u52a9\u5185\u6838\u63d0\u4f9b IPC \u673a\u5236\u3002<\/p>\n<p>\u5e38\u89c1 IPC \u65b9\u5f0f&#xff1a;<\/p>\n<li>\u7ba1\u9053 pipe&#xff1a;\u8840\u7f18\u8fdb\u7a0b\u901a\u4fe1&#xff08;\u7236\u5b50\u8fdb\u7a0b&#xff09;&#xff0c;\u534a\u53cc\u5de5&#xff0c;\u5b57\u8282\u6d41&#xff1b;<\/li>\n<li>\u6709\u540d\u7ba1\u9053 FIFO&#xff1a;\u65e0\u8840\u7f18\u5173\u7cfb\u8fdb\u7a0b\u4e5f\u53ef\u4ee5\u901a\u4fe1&#xff1b;<\/li>\n<li>\u6d88\u606f\u961f\u5217&#xff1a;\u5185\u6838\u7ef4\u62a4\u6d88\u606f\u7f13\u51b2\u533a&#xff0c;\u5e26\u7c7b\u578b\u6570\u636e\u5757&#xff1b;<\/li>\n<li>\u5171\u4eab\u5185\u5b58 shm&#xff1a;\u591a\u4e2a\u8fdb\u7a0b\u6620\u5c04\u540c\u4e00\u5757\u7269\u7406\u5185\u5b58&#xff0c;\u901f\u5ea6\u6700\u5feb IPC&#xff0c;\u4f46\u662f\u6ca1\u6709\u540c\u6b65\u673a\u5236&#xff0c;\u5fc5\u987b\u914d\u5408\u4fe1\u53f7\u91cf \/ \u9501&#xff1b;<\/li>\n<li>\u4fe1\u53f7\u91cf sem&#xff1a;\u505a\u540c\u6b65\u4e92\u65a5&#xff0c;\u4e0d\u4f20\u9012\u4e1a\u52a1\u6570\u636e&#xff1b;<\/li>\n<li>\u4fe1\u53f7 signal&#xff1a;\u5f02\u6b65\u901a\u77e5&#xff0c;\u4f20\u9012\u7b80\u5355\u4e8b\u4ef6&#xff1b;<\/li>\n<li>Socket&#xff1a;\u53ef\u4ee5\u672c\u673a\u8fdb\u7a0b\u901a\u4fe1&#xff0c;\u4e5f\u652f\u6301\u8de8\u4e3b\u673a\u7f51\u7edc\u901a\u4fe1\u3002<\/li>\n<h4>1. \u533f\u540d\u7ba1\u9053 pipe<\/h4>\n<p>int pipe(int fd[2]);<br \/>\n\/\/ fd[0]\u8bfb\u7aef&#xff0c;fd[1]\u5199\u7aef<\/p>\n<p>\u7ba1\u9053\u7279\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u6570\u636e\u5355\u5411\u6d41\u52a8&#xff1b;\u8bfb\u7aef\u5173\u95ed&#xff0c;\u5199\u89e6\u53d1 SIGPIPE \u4fe1\u53f7&#xff1b;\u5199\u7aef\u5173\u95ed&#xff0c;read \u8fd4\u56de 0&#xff1b;<\/li>\n<li>\u53ea\u9002\u7528\u4e8e\u6709\u4eb2\u7f18\u5173\u7cfb\u8fdb\u7a0b\u3002<\/li>\n<\/ul>\n<h4>2. \u4fe1\u53f7 signal<\/h4>\n<p>\u4fe1\u53f7\u662f\u8f6f\u4ef6\u4e2d\u65ad\u3002kill -l\u67e5\u770b\u5168\u90e8\u4fe1\u53f7\u3002 signal() \/ sigaction()\u6ce8\u518c\u4fe1\u53f7\u5904\u7406\u51fd\u6570\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u4fe1\u53f7\u5904\u7406\u51fd\u6570\u5185\u90e8\u53ea\u5141\u8bb8\u8c03\u7528\u53ef\u91cd\u5165\u51fd\u6570&#xff0c;\u4e0d\u8981\u4f7f\u7528 printf\/malloc \u7b49\u4e0d\u5b89\u5168\u51fd\u6570\u3002<\/p>\n<h4>3. \u5171\u4eab\u5185\u5b58&#xff08;\u6700\u9ad8\u901f IPC&#xff09;<\/h4>\n<p>shmget() \/\/\u521b\u5efa\/\u83b7\u53d6\u5171\u4eab\u5185\u5b58id<br \/>\nshmat()  \/\/\u6620\u5c04\u5230\u672c\u8fdb\u7a0b\u865a\u62df\u5730\u5740<br \/>\nshmdt()  \/\/\u89e3\u9664\u6620\u5c04<br \/>\nshmctl() \/\/\u63a7\u5236\u3001\u5220\u9664\u5171\u4eab\u5185\u5b58<\/p>\n<p>\u5171\u4eab\u5185\u5b58\u6ca1\u6709\u81ea\u5e26\u540c\u6b65&#xff0c;\u4e00\u5b9a\u8981\u642d\u914d\u4fe1\u53f7\u91cf\u6216\u8005\u4e92\u65a5\u9501&#xff0c;\u5426\u5219\u591a\u8fdb\u7a0b\u540c\u65f6\u5199\u4f1a\u4e71\u6570\u636e\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001Linux \u7f51\u7edc\u7f16\u7a0b Socket<\/h3>\n<p>\u4e00\u5207\u7686\u6587\u4ef6&#xff0c;socket \u4e5f\u662f\u4e00\u79cd\u6587\u4ef6\u63cf\u8ff0\u7b26&#xff0c;\u53ef\u4ee5\u7528 read\/write \u8bfb\u5199\u3002<\/p>\n<h4>TCP&#xff08;\u9762\u5411\u8fde\u63a5&#xff0c;\u53ef\u9760\u6d41\u5f0f&#xff09;\u670d\u52a1\u5668\u5f00\u53d1\u6d41\u7a0b<\/h4>\n<li>socket() \u521b\u5efa\u5957\u63a5\u5b57&#xff0c;\u8fd4\u56de fd&#xff1b;<\/li>\n<li>bind() \u7ed1\u5b9a IP \u548c\u7aef\u53e3\u53f7&#xff1b;<\/li>\n<li>listen() \u8bbe\u7f6e\u76d1\u542c&#xff0c;\u5f00\u542f\u88ab\u52a8\u8fde\u63a5&#xff1b;<\/li>\n<li>accept() \u963b\u585e\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5&#xff0c;\u8fd4\u56de\u65b0\u901a\u4fe1 socket fd&#xff1b;<\/li>\n<li>read\/write \u548c\u5ba2\u6237\u7aef\u6536\u53d1\u6570\u636e&#xff1b;<\/li>\n<li>close \u5173\u95ed\u5957\u63a5\u5b57\u3002<\/li>\n<p>TCP \u5ba2\u6237\u7aef\u6d41\u7a0b&#xff1a;<\/p>\n<li>socket();<\/li>\n<li>connect () \u5411\u670d\u52a1\u5668\u53d1\u8d77\u8fde\u63a5&#xff1b;<\/li>\n<li>read\/write \u6536\u53d1&#xff1b;<\/li>\n<li>close\u3002<\/li>\n<h4>UDP&#xff08;\u65e0\u8fde\u63a5&#xff0c;\u6570\u636e\u62a5&#xff09;<\/h4>\n<p>\u4e0d\u9700\u8981 connect\u3001listen\u3001accept&#xff1b; \u4f7f\u7528sendto()\u53d1\u9001&#xff0c;recvfrom()\u63a5\u6536&#xff0c;\u81ea\u5e26\u5bf9\u7aef\u5730\u5740\u3002<\/p>\n<h4>\u5b57\u8282\u5e8f\u5927\u5751<\/h4>\n<p>\u7f51\u7edc\u7edf\u4e00\u4f7f\u7528\u5927\u7aef\u5b57\u8282\u5e8f&#xff1b;\u4e3b\u673a\u53ef\u80fd\u5c0f\u7aef\u3002 \u8f6c\u6362\u51fd\u6570&#xff1a; htons() htonl() ntohs() ntohl() h\u2011host \u4e3b\u673a&#xff0c;n\u2011network \u7f51\u7edc&#xff0c;s\u2011short&#xff0c;l\u2011long\u3002<\/p>\n<p>\u5e38\u7528\u7ed3\u6784\u4f53&#xff1a;struct sockaddr_in IPv4 \u5730\u5740\u7ed3\u6784\u3002<\/p>\n<h4>IO \u6a21\u578b&#xff08;\u91cd\u70b9\u9762\u8bd5&#xff09;<\/h4>\n<li>\u963b\u585e IO&#xff08;\u9ed8\u8ba4&#xff09;&#xff1a;accept\u3001read \u6ca1\u6709\u6570\u636e\u5c31\u5361\u4f4f&#xff1b;<\/li>\n<li>\u975e\u963b\u585e IO&#xff1a;socket \u8bbe\u7f6e O_NONBLOCK&#xff0c;\u6ca1\u6709\u6570\u636e\u7acb\u523b\u8fd4\u56de\u20111&#xff1b;<\/li>\n<li>IO \u591a\u8def\u590d\u7528&#xff1a;select \/poll\/epoll\u3002<\/li>\n<p>epoll \u662f Linux \u9ad8\u6027\u80fd\u7f51\u7edc\u6838\u5fc3&#xff0c;\u9ad8\u5e76\u53d1\u670d\u52a1\u5668\u57fa\u77f3\u3002<\/p>\n<p>\u7b80\u5355\u533a\u5206&#xff1a;<\/p>\n<ul>\n<li>select&#xff1a;\u6587\u4ef6\u63cf\u8ff0\u6709\u4e0a\u9650&#xff1b;<\/li>\n<li>poll&#xff1a;\u65e0\u4e0a\u9650&#xff0c;\u4f46\u6bcf\u6b21\u5168\u90e8\u904d\u5386&#xff1b;<\/li>\n<li>epoll&#xff1a;\u4e8b\u4ef6\u9a71\u52a8&#xff0c;\u53ea\u8fd4\u56de\u5c31\u7eea fd&#xff0c;\u767e\u4e07\u5e76\u53d1\u9996\u9009\u3002<\/li>\n<\/ul>\n<p>\u670d\u52a1\u5668\u67b6\u6784&#xff1a;\u5355\u8fdb\u7a0b epoll&#xff1b;\u591a\u8fdb\u7a0b fork&#xff1b;\u591a\u7ebf\u7a0b\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001Linux \u4e0b\u6570\u636e\u5e93\u7f16\u7a0b SQLite<\/h3>\n<p>\u5d4c\u5165\u5f0f\u5e38\u7528\u8f7b\u91cf\u6570\u636e\u5e93 SQLite&#xff0c;\u6587\u4ef6\u578b\u6570\u636e\u5e93&#xff0c;\u4e0d\u9700\u8981\u72ec\u7acb\u670d\u52a1\u8fdb\u7a0b\u3002<\/p>\n<p>\u6838\u5fc3 API&#xff1a;<\/p>\n<li>sqlite3_open() \u6253\u5f00\u6570\u636e\u5e93\u6587\u4ef6&#xff1b;<\/li>\n<li>sqlite3_exec() \u76f4\u63a5\u6267\u884c SQL \u8bed\u53e5&#xff08;\u5efa\u8868\u3001\u589e\u5220\u6539&#xff09;&#xff1b;<\/li>\n<li>sqlite3_prepare_v2() \u9884\u5904\u7406\u8bed\u53e5&#xff0c;\u67e5\u8be2\u6570\u636e&#xff1b;<\/li>\n<li>\u56de\u8c03\u51fd\u6570\u6216\u8005 step \u51fd\u6570\u83b7\u53d6\u67e5\u8be2\u7ed3\u679c&#xff1b;<\/li>\n<li>sqlite3_close()\u5173\u95ed\u6570\u636e\u5e93\u3002<\/li>\n<p>\u57fa\u7840 SQL \u8bed\u53e5&#xff1a;<\/p>\n<p>CREATE TABLE user(id INTEGER PRIMARY KEY, name TEXT);<br \/>\nINSERT INTO user(name) VALUES(&#034;zhangsan&#034;);<br \/>\nSELECT * FROM user;<br \/>\nUPDATE user set name&#061;&#034;lisi&#034; where id&#061;1;<br \/>\nDELETE FROM user where id&#061;1;<\/p>\n<p>\u7f16\u8bd1\u94fe\u63a5\u9700\u8981 -lsqlite3\u3002<\/p>\n<p>\u4f7f\u7528\u573a\u666f&#xff1a;\u672c\u5730\u914d\u7f6e\u5b58\u50a8\u3001\u65e5\u5fd7\u8bb0\u5f55\u3001\u5d4c\u5165\u5f0f\u8bbe\u5907\u672c\u5730\u6570\u636e\u7ba1\u7406\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u6574\u5957 Linux \u5e94\u7528\u5f00\u53d1\u77e5\u8bc6\u603b\u6846\u67b6<\/h3>\n<li>\u6587\u4ef6\u7f16\u7a0b&#xff1a;\u6807\u51c6 IO\u3001\u7cfb\u7edf\u8c03\u7528 IO\u3001\u76ee\u5f55\u3001mmap \u5e27\u7f13\u51b2\u3001\u65e5\u5fd7&#xff1b;<\/li>\n<li>\u591a\u4efb\u52a1&#xff1a;\u8fdb\u7a0b fork\u3001\u50f5\u5c38 \/ \u5b64\u513f\u8fdb\u7a0b\u3001exec&#xff1b;\u7ebf\u7a0b pthread\u3001\u9501\u3001\u6761\u4ef6\u53d8\u91cf&#xff1b;<\/li>\n<li>IPC \u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff1a;\u7ba1\u9053\u3001\u6d88\u606f\u961f\u5217\u3001\u5171\u4eab\u5185\u5b58\u3001\u4fe1\u53f7&#xff1b;<\/li>\n<li>Socket \u7f51\u7edc\u7f16\u7a0b&#xff1a;TCP\/UDP&#xff0c;\u5b57\u8282\u5e8f&#xff0c;IO \u591a\u8def\u590d\u7528 epoll&#xff1b;<\/li>\n<li>SQLite \u6570\u636e\u5e93&#xff0c;\u6301\u4e45\u5316\u7ed3\u6784\u5316\u6570\u636e\u3002<\/li>\n<h4>\u5b66\u4e60\u5b9e\u64cd\u5efa\u8bae<\/h4>\n<li>\u6587\u4ef6&#xff1a;\u81ea\u5df1\u5b9e\u73b0 cp \u5de5\u5177\u3001\u65e5\u5fd7\u6a21\u5757\u3001framebuffer \u753b\u70b9&#xff1b;<\/li>\n<li>\u8fdb\u7a0b&#xff1a;fork \u521b\u5efa\u5b50\u8fdb\u7a0b&#xff0c;wait \u56de\u6536&#xff0c;\u7ec3\u4e60 execl \u8c03\u7528 ls \u547d\u4ee4&#xff1b;<\/li>\n<li>\u7ebf\u7a0b&#xff1a;\u5199\u751f\u4ea7\u8005\u6d88\u8d39\u8005\u6a21\u578b&#xff0c;\u7ec3\u4e60\u4e92\u65a5\u9501 &#043; \u6761\u4ef6\u53d8\u91cf&#xff1b;<\/li>\n<li>\u7f51\u7edc&#xff1a;\u5199\u7b80\u5355 TCP \u56de\u663e\u670d\u52a1\u5668&#xff0c;\u518d\u6539\u9020 epoll \u591a\u8def\u590d\u7528&#xff1b;<\/li>\n<li>SQLite&#xff1a;\u5199\u4e00\u4e2a\u7b80\u5355\u7528\u6237\u4fe1\u606f\u589e\u5220\u6539\u67e5\u7a0b\u5e8f\u3002<\/li>\n<h3>\u5c0f\u7ed3<\/h3>\n<p>\u8fdb\u7a0b\u548c\u7ebf\u7a0b\u662f\u591a\u4efb\u52a1\u7684\u4e24\u79cd\u5b9e\u73b0&#xff0c;\u7ebf\u7a0b\u66f4\u8f7b\u91cf\u9002\u5408 CPU \u5bc6\u96c6\u3001IO \u5bc6\u96c6\u5e76\u53d1&#xff1b;\u8fdb\u7a0b\u9694\u79bb\u6027\u5f3a&#xff0c;\u7a33\u5b9a\u6027\u66f4\u9ad8\u3002\u8fdb\u7a0b\u95f4\u901a\u4fe1\u624b\u6bb5\u5f88\u591a&#xff0c;\u8ffd\u6c42\u901f\u5ea6\u4f18\u5148\u9009\u5171\u4eab\u5185\u5b58&#xff0c;\u8de8\u673a\u5668\u901a\u4fe1\u5c31\u7528 Socket \u7f51\u7edc\u7f16\u7a0b&#xff1b;\u7ed3\u6784\u5316\u6301\u4e45\u5b58\u50a8\u9009\u62e9 SQLite \u6570\u636e\u5e93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e00\u7bc7\u6211\u4eec\u68b3\u7406\u4e86 Linux \u6587\u4ef6\u7f16\u7a0b&#xff0c;\u5305\u542b\u6807\u51c6 IO\u3001\u6587\u4ef6 IO\u3001\u76ee\u5f55\u64cd\u4f5c\u3001framebuffer \u5e27\u7f13\u51b2\u4e0e\u65e5\u5fd7\u6a21\u5757\u3002\u672c\u7bc7\u7ee7\u7eed\u5f80\u4e0b\u5b66\u4e60\u591a\u7ebf\u7a0b\u9ad8\u7ea7\u3001IPC \u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001Socket \u7f51\u7edc\u7f16\u7a0b\u3001\u7b80\u5355\u6570\u636e\u5e93\u5f00\u53d1&#xff0c;\u628a Linux \u5e94\u7528\u5f00\u53d1\u56db\u5927\u6a21\u5757\u8865\u5168\u3002\u56de\u987e\u524d\u6587\u8981\u70b9\u901f\u89c8\u6587\u4ef6\u7f16\u7a0b\u4e24\u5927\u4f53\u7cfb&#xff1a;\u6807\u51c6 IO&#xff1a;C \u5e93\u51fd\u6570&#xff0c;FILE*\u6587\u4ef6\u6d41&#xff0c;\u81ea\u5e26\u7f13\u51b2\u533a&#xff0c;\u53ef\u79fb\u690d\u6027\u5f3a&#xff1b;\u6587\u4ef6 IO&amp;#xff0<\/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":[58,100,78],"topic":[],"class_list":["post-95755","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-100","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\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\/95755.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e0a\u4e00\u7bc7\u6211\u4eec\u68b3\u7406\u4e86 Linux \u6587\u4ef6\u7f16\u7a0b&#xff0c;\u5305\u542b\u6807\u51c6 IO\u3001\u6587\u4ef6 IO\u3001\u76ee\u5f55\u64cd\u4f5c\u3001framebuffer \u5e27\u7f13\u51b2\u4e0e\u65e5\u5fd7\u6a21\u5757\u3002\u672c\u7bc7\u7ee7\u7eed\u5f80\u4e0b\u5b66\u4e60\u591a\u7ebf\u7a0b\u9ad8\u7ea7\u3001IPC \u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001Socket \u7f51\u7edc\u7f16\u7a0b\u3001\u7b80\u5355\u6570\u636e\u5e93\u5f00\u53d1&#xff0c;\u628a Linux \u5e94\u7528\u5f00\u53d1\u56db\u5927\u6a21\u5757\u8865\u5168\u3002\u56de\u987e\u524d\u6587\u8981\u70b9\u901f\u89c8\u6587\u4ef6\u7f16\u7a0b\u4e24\u5927\u4f53\u7cfb&#xff1a;\u6807\u51c6 IO&#xff1a;C \u5e93\u51fd\u6570&#xff0c;FILE*\u6587\u4ef6\u6d41&#xff0c;\u81ea\u5e26\u7f13\u51b2\u533a&#xff0c;\u53ef\u79fb\u690d\u6027\u5f3a&#xff1b;\u6587\u4ef6 IO&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/95755.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-26T13:17:45+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\/95755.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/95755.html\",\"name\":\"Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-26T13:17:45+00:00\",\"dateModified\":\"2026-08-26T13:17:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/95755.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/95755.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/95755.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\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":"Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\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\/95755.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e0a\u4e00\u7bc7\u6211\u4eec\u68b3\u7406\u4e86 Linux \u6587\u4ef6\u7f16\u7a0b&#xff0c;\u5305\u542b\u6807\u51c6 IO\u3001\u6587\u4ef6 IO\u3001\u76ee\u5f55\u64cd\u4f5c\u3001framebuffer \u5e27\u7f13\u51b2\u4e0e\u65e5\u5fd7\u6a21\u5757\u3002\u672c\u7bc7\u7ee7\u7eed\u5f80\u4e0b\u5b66\u4e60\u591a\u7ebf\u7a0b\u9ad8\u7ea7\u3001IPC \u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001Socket \u7f51\u7edc\u7f16\u7a0b\u3001\u7b80\u5355\u6570\u636e\u5e93\u5f00\u53d1&#xff0c;\u628a Linux \u5e94\u7528\u5f00\u53d1\u56db\u5927\u6a21\u5757\u8865\u5168\u3002\u56de\u987e\u524d\u6587\u8981\u70b9\u901f\u89c8\u6587\u4ef6\u7f16\u7a0b\u4e24\u5927\u4f53\u7cfb&#xff1a;\u6807\u51c6 IO&#xff1a;C \u5e93\u51fd\u6570&#xff0c;FILE*\u6587\u4ef6\u6d41&#xff0c;\u81ea\u5e26\u7f13\u51b2\u533a&#xff0c;\u53ef\u79fb\u690d\u6027\u5f3a&#xff1b;\u6587\u4ef6 IO&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/95755.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-26T13:17:45+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\/95755.html","url":"https:\/\/www.wsisp.com\/helps\/95755.html","name":"Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-26T13:17:45+00:00","dateModified":"2026-08-26T13:17:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/95755.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/95755.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/95755.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u5165\u95e8DAY30\uff08\u591a\u7ebf\u7a0b\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u3001\u7f51\u7edc\u7f16\u7a0b\u4e0e\u6570\u636e\u5e93\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\/95755","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=95755"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/95755\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=95755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=95755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=95755"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=95755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}