{"id":109098,"date":"2026-09-23T10:57:19","date_gmt":"2026-09-23T02:57:19","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109098.html"},"modified":"2026-09-23T10:57:19","modified_gmt":"2026-09-23T02:57:19","slug":"linux%e8%bf%9b%e9%98%b6%e7%9f%a5%e8%af%861-0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109098.html","title":{"rendered":"Linux\u8fdb\u9636\u77e5\u8bc61.0"},"content":{"rendered":"<p>  <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"328\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923025715-6ab3400bc432d.png\" width=\"325\" \/> <\/p>\n<p>   &#064;bit::Shadow<br \/>\n    \u2727(\u2256 \u25e1 \u2256\u273f\u00a0<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E5%88%86%E5%8F%B7%EF%BC%9B%E4%B8%8D%E8%AE%BA%E4%B8%8A%E4%B8%80%E4%B8%AA%E6%8C%87%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%98%AF%E5%90%A6%E6%88%90%E5%8A%9F%E5%9D%87%E4%BC%9A%E6%89%A7%E8%A1%8C%E4%B8%8B%E4%B8%80%E4%B8%AA%E6%8C%87%E4%BB%A4-toc\" style=\"margin-left:0px\">\u5206\u53f7&#xff1b;\u4e0d\u8bba\u4e0a\u4e00\u4e2a\u6307\u4ee4\u6267\u884c\u662f\u5426\u6210\u529f\u5747\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4<\/p>\n<p id=\"%E9%80%BB%E8%BE%91%E4%B8%8E%E7%AC%A6%E5%8F%B7%26%26%E5%8F%AA%E6%9C%89%E5%BD%93%E4%B8%8A%E4%B8%80%E4%B8%AA%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%88%90%E5%8A%9F%E6%89%8D%E4%BC%9A%E6%89%A7%E8%A1%8C%E4%B8%8B%E4%B8%80%E4%B8%AA%E6%8C%87%E4%BB%A4-toc\" style=\"margin-left:0px\">\u903b\u8f91\u4e0e\u7b26\u53f7&amp;&amp;\u53ea\u6709\u5f53\u4e0a\u4e00\u4e2a\u547d\u4ee4\u6267\u884c\u6210\u529f\u624d\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4<\/p>\n<p id=\"%E5%AD%90%E8%BF%9B%E7%A8%8B%E7%BB%A7%E6%89%BF%E7%88%B6%E8%BF%9B%E7%A8%8B%E7%9A%84%E4%BF%A1%E5%8F%B7%E5%A4%84%E7%90%86%E5%8A%A8%E4%BD%9C%EF%BC%9F%E5%83%8F%E5%BF%BD%E7%95%A5%E4%BF%A1%E5%8F%B7%E5%8A%A8%E4%BD%9C%EF%BC%9F-toc\" style=\"margin-left:0px\">\u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c&#xff1f;\u50cf\u5ffd\u7565\u4fe1\u53f7\u52a8\u4f5c&#xff1f;<\/p>\n<p id=\"%E5%AD%90%E8%BF%9B%E7%A8%8B%E7%BB%A7%E6%89%BF%E7%88%B6%E8%BF%9B%E7%A8%8B%E7%9A%84%E4%BF%A1%E5%8F%B7%E5%A4%84%E7%90%86-toc\" style=\"margin-left:40px\">\u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406<\/p>\n<p id=\"%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%8B-toc\" style=\"margin-left:40px\">\u5b88\u62a4\u8fdb\u7a0b<\/p>\n<p id=\"%E8%AE%BE%E5%A4%87%E6%96%87%E4%BB%B6%20%2Fdev%2Fnull-toc\" style=\"margin-left:0px\">\u8bbe\u5907\u6587\u4ef6 \/dev\/null<\/p>\n<p id=\"ss%20-tan%20%7C%20head-n1%3B%20ss-tan%20%7C%20grep%208080-toc\" style=\"margin-left:0px\">ss -tan | head-n1; ss-tan | grep 8080<\/p>\n<p id=\"%E4%BA%8C%E3%80%81Recv-Q%EF%BC%88%E6%8E%A5%E6%94%B6%E9%98%9F%E5%88%97%EF%BC%89-toc\" style=\"margin-left:40px\">\u4e8c\u3001Recv-Q&#xff08;\u63a5\u6536\u961f\u5217&#xff09;<\/p>\n<p id=\"%E4%B8%89%E3%80%81Send-Q%EF%BC%88%E5%8F%91%E9%80%81%E9%98%9F%E5%88%97%EF%BC%89-toc\" style=\"margin-left:40px\">\u4e09\u3001Send-Q&#xff08;\u53d1\u9001\u961f\u5217&#xff09;<\/p>\n<p id=\"%E5%AD%97%E6%AE%B5%20peer%20Addres%EF%BC%9A%E5%AF%B9%E7%AB%AF%E5%9C%B0%E5%9D%80-toc\" style=\"margin-left:40px\">\u5b57\u6bb5 peer Addres&#xff1a;\u5bf9\u7aef\u5730\u5740<\/p>\n<p id=\"%E5%8F%B3%E5%80%BC%3D-toc\" style=\"margin-left:0px\">\u53f3\u503c&#061;<\/p>\n<p id=\"Switch%E7%9A%84%E9%94%99%E8%AF%AF%E7%94%A8%E6%B3%95-toc\" style=\"margin-left:0px\">Switch\u7684\u9519\u8bef\u7528\u6cd5<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E5%88%86%E5%8F%B7%EF%BC%9B%E4%B8%8D%E8%AE%BA%E4%B8%8A%E4%B8%80%E4%B8%AA%E6%8C%87%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%98%AF%E5%90%A6%E6%88%90%E5%8A%9F%E5%9D%87%E4%BC%9A%E6%89%A7%E8%A1%8C%E4%B8%8B%E4%B8%80%E4%B8%AA%E6%8C%87%E4%BB%A4\">\u5206\u53f7&#xff1b;\u4e0d\u8bba\u4e0a\u4e00\u4e2a\u6307\u4ee4\u6267\u884c\u662f\u5426\u6210\u529f\u5747\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4<\/h2>\n<h2 id=\"%E9%80%BB%E8%BE%91%E4%B8%8E%E7%AC%A6%E5%8F%B7%26%26%E5%8F%AA%E6%9C%89%E5%BD%93%E4%B8%8A%E4%B8%80%E4%B8%AA%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%88%90%E5%8A%9F%E6%89%8D%E4%BC%9A%E6%89%A7%E8%A1%8C%E4%B8%8B%E4%B8%80%E4%B8%AA%E6%8C%87%E4%BB%A4\">\u903b\u8f91\u4e0e\u7b26\u53f7&amp;&amp;\u53ea\u6709\u5f53\u4e0a\u4e00\u4e2a\u547d\u4ee4\u6267\u884c\u6210\u529f\u624d\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"84\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923025718-6ab3400e08198.png\" width=\"1393\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"87\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923025718-6ab3400e25901.png\" width=\"1389\" \/><\/p>\n<h2 id=\"%E5%AD%90%E8%BF%9B%E7%A8%8B%E7%BB%A7%E6%89%BF%E7%88%B6%E8%BF%9B%E7%A8%8B%E7%9A%84%E4%BF%A1%E5%8F%B7%E5%A4%84%E7%90%86%E5%8A%A8%E4%BD%9C%EF%BC%9F%E5%83%8F%E5%BF%BD%E7%95%A5%E4%BF%A1%E5%8F%B7%E5%8A%A8%E4%BD%9C%EF%BC%9F\">\u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c&#xff1f;\u50cf\u5ffd\u7565\u4fe1\u53f7\u52a8\u4f5c&#xff1f;<\/h2>\n<h3 id=\"%E5%AD%90%E8%BF%9B%E7%A8%8B%E7%BB%A7%E6%89%BF%E7%88%B6%E8%BF%9B%E7%A8%8B%E7%9A%84%E4%BF%A1%E5%8F%B7%E5%A4%84%E7%90%86\">\u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406<\/h3>\n<p>\u662f\u7684&#xff0c;\u5b50\u8fdb\u7a0b\u4f1a\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c&#xff0c;\u5305\u62ec\u5ffd\u7565&#xff08;SIG_IGN&#xff09;\u3001\u81ea\u5b9a\u4e49\u5904\u7406\u51fd\u6570\u548c\u9ed8\u8ba4\u884c\u4e3a\u3002\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u7279\u6027\u3002<\/p>\n<h3 id=\"%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%8B\" style=\"--darkreader-inline-bgcolor:transparent;background-color:transparent\">\u5b88\u62a4\u8fdb\u7a0b<\/h3>\n<p>\/*\u5b88\u62a4\u8fdb\u7a0b\u8bd1\u4f5c&#xff1a;daemon (dei men)*\/<br \/>\nconst char *workpath &#061; &#034;\/&#034;;<br \/>\nvoid Daemon (int cdir, int noclose)<br \/>\n{<br \/>\n    \/\/\u89e3\u51b3IO\u95ee\u9898<br \/>\n    signal (SIGCHLD, SIG_IGN);<br \/>\n    signal (SIGPIPE, SIG_IGN);<\/p>\n<p>    if (fork () &gt; 0)<br \/>\n        exit (0);<br \/>\n    \/\/\u5b50\u8fdb\u7a0b\u521b\u5efa\u4f5c\u4e3a\u65b0\u4f1a\u8bdd\u7ec4\u7ec4\u957f<br \/>\n    pid_t ret &#061; setsid ();<br \/>\n    if(ret &lt; 0)<br \/>\n        RETFATAL (&#034;setsid&#034;);<\/p>\n<p>    \/\/\u5de5\u4f5c\u8def\u5f84\u662f\u5426\u5207\u6362&#xff1f;(\u5373\u5b88\u62a4\u8fdb\u7a0b\u8fd0\u884c\u7684\u8def\u5f84)<br \/>\n    if(cdir &#061;&#061; 0)<br \/>\n        chdir (workpath);<br \/>\n    \/\/ \u91cd\u5b9a\u5411\u6807\u51c6\u8f93\u5165\u3001\u6807\u51c6\u8f93\u51fa\u3001\u6807\u51c6\u9519\u8bef\u5230my.log\u6587\u4ef6(\u65e5\u5fd7\u6587\u4ef6)<br \/>\n    \/\/ \u8fd9\u6837\u505a\u7684\u8981\u6c42\u662f\u5b88\u62a4\u8fdb\u7a0b\u7279\u5f81(\u9ed8\u8ba4\u5173\u95ed\u7ec8\u7aef)<br \/>\n    if(noclose &#061;&#061; 0)<br \/>\n    {<br \/>\n        int fd &#061; open (&#034;\/my.log&#034;, O_RDWR);\/\/\u8bfb\u5199<br \/>\n        if(fd &lt; 0)<br \/>\n            RETFATAL (&#034;open&#034;);<br \/>\n        int ret1 &#061; dup2 (fd, 0);<br \/>\n        int ret2 &#061; dup2 (fd, 1);<br \/>\n        int ret3 &#061; dup2 (fd, 2);<br \/>\n        if(ret1 &lt; 0 || ret2 &lt; 0 || ret3 &lt; 0)<br \/>\n            RETFATAL (&#034;dup2&#034;);<\/p>\n<p>        \/\/\u6253\u5f00\u7684fd\u9700\u8981\u5173\u95ed\u5417&#xff1f;&#8212;&gt;\u5173\u95ed\u540e\u4f1a\u5f71\u54cd\u5199\u5165\u5417&#xff1f;\u4e0d\u4f1a&#xff01;&#xff01;&#xff01;<br \/>\n        int ret4 &#061; close (fd);<br \/>\n        if(ret4 &lt; 0)<br \/>\n            RETFATAL (&#034;close&#034;);<br \/>\n    }<br \/>\n} <\/p>\n<h2 id=\"%E8%AE%BE%E5%A4%87%E6%96%87%E4%BB%B6%20%2Fdev%2Fnull\">\u8bbe\u5907\u6587\u4ef6 \/dev\/null<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"57\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923025718-6ab3400e437a7.png\" width=\"840\" \/><\/p>\n<p>\u51e1\u662f\u5199\u5165\u5230\u8fd9\u4e2a\u6587\u4ef6\u5185\u7684\u5185\u5bb9&#xff0c;\u5747\u88ab\u4e22\u5f03\u3002 \u51e1\u662f\u4ece\u8be5\u6587\u4ef6\u8bfb\u53d6\u7684\u5185\u5bb9&#xff0c;\u5747\u662f\u7a7a\u3002\u00a0<\/p>\n<h2 id=\"ss%20-tan%20%7C%20head-n1%3B%20ss-tan%20%7C%20grep%208080\">ss -tan | head-n1; ss-tan | grep 8080<\/h2>\n<p>&#034;\u5e26\u8868\u5934\u5730&#034;\u5217\u51fa\u5f53\u524d\u6240\u6709\u548c 8080 \u6709\u5173\u7684 TCP \u8fde\u63a5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"212\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923025718-6ab3400e5ba81.png\" width=\"1773\" \/><\/p>\n<p>\u7b2c\u4e09\u884c\u56db\u884c\u662f\u56e0\u4e3a\u201c\u672c\u5730\u56de\u73af\u201d\u7684\u539f\u56e0\u5f62\u6210\u4e86\u4e00\u5bf9\u94fe\u63a5\u3002<\/p>\n<h3 id=\"%E4%BA%8C%E3%80%81Recv-Q%EF%BC%88%E6%8E%A5%E6%94%B6%E9%98%9F%E5%88%97%EF%BC%89\">\u4e8c\u3001Recv-Q&#xff08;\u63a5\u6536\u961f\u5217&#xff09;<\/h3>\n<p>\u5f53\u524d\u8fd9\u4e2a socket \u7684\u63a5\u6536\u7f13\u51b2\u533a\u91cc&#xff0c;<span style=\"--darkreader-inline-color:var(--darkreader-text-fe2c24, #fe3a33);color:#fe2c24\">\u8fd8\u6709\u591a\u5c11\u5b57\u8282\u6ca1\u88ab\u5e94\u7528\u5c42\u8bfb\u8d70<\/span>\u3002<\/p>\n<table>\n<tr>\u72b6\u6001\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>LISTEN<\/td>\n<td>\u5df2\u5b8c\u6210\u4e09\u6b21\u63e1\u624b\u3001\u4f46\u8fd8\u6ca1\u88ab accept \u53d6\u8d70\u7684\u8fde\u63a5\u6570&#xff08;backlog \u961f\u5217\u91cc\u5806\u79ef\u7684\u91cf&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>ESTAB<\/td>\n<td>\u5df2\u6536\u5230\u4f46\u5e94\u7528\u8fd8\u6ca1\u00a0recv\u00a0\u7684\u6570\u636e\u5b57\u8282\u6570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f60\u7684\u8f93\u51fa&#xff1a;<\/p>\n<ul>\n<li>\n<p>LISTEN\u00a0\u7684 Recv-Q &#061;\u00a00\u00a0\u2192 \u6ca1\u6709\u79ef\u538b\u7684\u672a accept \u8fde\u63a5&#xff0c;accept\u00a0\u5f88\u53ca\u65f6<\/p>\n<\/li>\n<li>\n<p>\u6240\u6709 ESTAB \u7684 Recv-Q &#061;\u00a00\u00a0\u2192 \u6ca1\u6709\u672a\u8bfb\u6570\u636e&#xff0c;\u5e94\u7528\u8bfb\u5f97\u5f88\u5e72\u51c0<\/p>\n<\/li>\n<\/ul>\n<p>\u5982\u679c LISTEN \u7684 Recv-Q \u6301\u7eed &gt; 0&#xff0c;\u8bf4\u660e\u00a0accept\u00a0\u592a\u6162\u6216\u6ca1\u8c03\u7528&#xff0c;\u8fde\u63a5\u5728\u6392\u961f\u3002<\/p>\n<hr \/>\n<h3 id=\"%E4%B8%89%E3%80%81Send-Q%EF%BC%88%E5%8F%91%E9%80%81%E9%98%9F%E5%88%97%EF%BC%89\">\u4e09\u3001Send-Q&#xff08;\u53d1\u9001\u961f\u5217&#xff09;<\/h3>\n<table>\n<tr>\u72b6\u6001\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>LISTEN<\/td>\n<td>listen() \u4f20\u5165\u7684 backlog \u503c&#xff08;\u5185\u6838\u53ef\u80fd\u622a\u65ad&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>ESTAB<\/td>\n<td>\u5df2\u53d1\u7ed9\u5bf9\u65b9\u4f46\u8fd8\u6ca1\u6536\u5230 ACK\u00a0\u7684\u5b57\u8282\u6570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f60\u7684\u8f93\u51fa&#xff1a;<\/p>\n<ul>\n<li>\n<p>LISTEN\u00a0\u7684 Send-Q &#061;\u00a04\u00a0\u2192 \u4f60\u00a0listen()\u00a0\u65f6 backlog \u4f20\u7684\u662f 4&#xff08;\u5f88\u5c0f&#xff0c;\u901a\u5e38\u4f20\u00a0SOMAXCONN\u00a0\u5373 128 \u6216\u66f4\u5927&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u6240\u6709 ESTAB \u7684 Send-Q &#061;\u00a00\u00a0\u2192 \u53d1\u51fa\u53bb\u7684\u6570\u636e\u90fd\u88ab\u786e\u8ba4\u4e86&#xff0c;\u6ca1\u6709\u5f85\u786e\u8ba4<\/p>\n<\/li>\n<\/ul>\n<p>\u6ce8\u610f&#xff1a;LISTEN \u72b6\u6001\u4e0b Send-Q \u4e0d\u662f&#034;\u5f85\u53d1\u9001\u6570\u636e&#034;&#xff0c;\u800c\u662f backlog\u3002\u00a0\u8fd9\u662f\u5f88\u591a\u4eba\u8bef\u89e3\u7684\u5730\u65b9\u3002<\/p>\n<h3 id=\"%E5%AD%97%E6%AE%B5%20peer%20Addres%EF%BC%9A%E5%AF%B9%E7%AB%AF%E5%9C%B0%E5%9D%80\">\u5b57\u6bb5 peer Addres&#xff1a;\u5bf9\u7aef\u5730\u5740<\/h3>\n<h2 id=\"%E5%8F%B3%E5%80%BC%3D\">\u53f3\u503c&#061;<\/h2>\n<p>\u53f3\u503c\u5728&#061;\u53f3\u4fa7\u662f\u201c\u62f7\u8d1d\u8fdb\u884c\u201d\u7684&#xff0c;\u4e0d\u662f\u201c\u53f3\u503c\u5728\u53f3\u201d\u6240\u4ee5\u6ca1\u95ee\u9898<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"387\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923025718-6ab3400e93b99.png\" width=\"825\" \/><\/p>\n<h2 id=\"Switch%E7%9A%84%E9%94%99%E8%AF%AF%E7%94%A8%E6%B3%95\">Switch\u7684\u9519\u8bef\u7528\u6cd5<\/h2>\n<p>const int rnum &#061; epoll_wait (_epollfd, _ep, epoll_arr_maxsize, timeout);<\/p>\n<p>switch (rnum)<br \/>\n{<br \/>\ncase (bool)(rnum &gt; 0):<br \/>\n    \/* code *\/<br \/>\n    break;<\/p>\n<p>default:<br \/>\n    break;<br \/>\n} <\/p>\n<p>case\u540e\u5fc5\u987b\u662f\u201c\u7f16\u8bd1\u671f\u6574\u578b\u5e38\u91cf\u8868\u8fbe\u5f0f\u201d\u3002<\/p>\n<ul>\n<li>\n<p>(bool)(rnum &gt; 0)\u00a0\u662f<span style=\"--darkreader-inline-color:var(--darkreader-text-fe2c24, #fe3a33);color:#fe2c24\">\u8fd0\u884c\u65f6<\/span>\u8ba1\u7b97\u7684\u503c&#xff0c;\u4e0d\u662f\u5e38\u91cf\u3002<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>bit::Shadow\u2727(\u2256 \u25e1 \u2256\u273f\u00a0\u76ee\u5f55<br \/>\n\u5206\u53f7&#xff1b;\u4e0d\u8bba\u4e0a\u4e00\u4e2a\u6307\u4ee4\u6267\u884c\u662f\u5426\u6210\u529f\u5747\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4<br \/>\n\u903b\u8f91\u4e0e\u7b26\u53f7&amp;&amp;\u53ea\u6709\u5f53\u4e0a\u4e00\u4e2a\u547d\u4ee4\u6267\u884c\u6210\u529f\u624d\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4<br \/>\n\u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c&#xff1f;\u50cf\u5ffd\u7565\u4fe1\u53f7\u52a8\u4f5c&#xff1f;<br \/>\n\u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406<br \/>\n\u5b88\u62a4\u8fdb\u7a0b<br \/>\n\u8bbe\u5907\u6587\u4ef6 \/dev\/null<br \/>\nss -tan | head-n1; ss-tan | grep 8080<br \/>\n\u4e8c\u3001Recv-Q&#xff08;\u63a5\u6536\u961f\u5217&#xff09;<br \/>\n\u4e09\u3001Send<\/p>\n","protected":false},"author":2,"featured_media":109092,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11653,58,43,44],"topic":[],"class_list":["post-109098","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-11653","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\u9636\u77e5\u8bc61.0 - \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\/109098.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u8fdb\u9636\u77e5\u8bc61.0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"bit::Shadow\u2727(\u2256 \u25e1 \u2256\u273f\u00a0\u76ee\u5f55 \u5206\u53f7&#xff1b;\u4e0d\u8bba\u4e0a\u4e00\u4e2a\u6307\u4ee4\u6267\u884c\u662f\u5426\u6210\u529f\u5747\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4 \u903b\u8f91\u4e0e\u7b26\u53f7&amp;&amp;\u53ea\u6709\u5f53\u4e0a\u4e00\u4e2a\u547d\u4ee4\u6267\u884c\u6210\u529f\u624d\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4 \u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c&#xff1f;\u50cf\u5ffd\u7565\u4fe1\u53f7\u52a8\u4f5c&#xff1f; \u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406 \u5b88\u62a4\u8fdb\u7a0b \u8bbe\u5907\u6587\u4ef6 \/dev\/null ss -tan | head-n1; ss-tan | grep 8080 \u4e8c\u3001Recv-Q&#xff08;\u63a5\u6536\u961f\u5217&#xff09; \u4e09\u3001Send\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109098.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T02:57:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923025715-6ab3400bc432d.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109098.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109098.html\",\"name\":\"Linux\u8fdb\u9636\u77e5\u8bc61.0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-23T02:57:19+00:00\",\"dateModified\":\"2026-09-23T02:57:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109098.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109098.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109098.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u8fdb\u9636\u77e5\u8bc61.0\"}]},{\"@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\u9636\u77e5\u8bc61.0 - \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\/109098.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u8fdb\u9636\u77e5\u8bc61.0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"bit::Shadow\u2727(\u2256 \u25e1 \u2256\u273f\u00a0\u76ee\u5f55 \u5206\u53f7&#xff1b;\u4e0d\u8bba\u4e0a\u4e00\u4e2a\u6307\u4ee4\u6267\u884c\u662f\u5426\u6210\u529f\u5747\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4 \u903b\u8f91\u4e0e\u7b26\u53f7&amp;&amp;\u53ea\u6709\u5f53\u4e0a\u4e00\u4e2a\u547d\u4ee4\u6267\u884c\u6210\u529f\u624d\u4f1a\u6267\u884c\u4e0b\u4e00\u4e2a\u6307\u4ee4 \u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406\u52a8\u4f5c&#xff1f;\u50cf\u5ffd\u7565\u4fe1\u53f7\u52a8\u4f5c&#xff1f; \u5b50\u8fdb\u7a0b\u7ee7\u627f\u7236\u8fdb\u7a0b\u7684\u4fe1\u53f7\u5904\u7406 \u5b88\u62a4\u8fdb\u7a0b \u8bbe\u5907\u6587\u4ef6 \/dev\/null ss -tan | head-n1; ss-tan | grep 8080 \u4e8c\u3001Recv-Q&#xff08;\u63a5\u6536\u961f\u5217&#xff09; \u4e09\u3001Send","og_url":"https:\/\/www.wsisp.com\/helps\/109098.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-23T02:57:19+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923025715-6ab3400bc432d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/109098.html","url":"https:\/\/www.wsisp.com\/helps\/109098.html","name":"Linux\u8fdb\u9636\u77e5\u8bc61.0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-23T02:57:19+00:00","dateModified":"2026-09-23T02:57:19+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109098.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109098.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109098.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u8fdb\u9636\u77e5\u8bc61.0"}]},{"@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\/109098","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=109098"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109098\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/109092"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109098"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}