{"id":82975,"date":"2026-07-25T15:26:51","date_gmt":"2026-07-25T07:26:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/82975.html"},"modified":"2026-07-25T15:26:51","modified_gmt":"2026-07-25T07:26:51","slug":"linux-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%86%85%e6%a0%b8%e8%b0%83%e4%bc%98%e5%ae%9e%e6%88%98%ef%bc%9a%e4%bb%8e%e7%b3%bb%e7%bb%9f%e7%93%b6%e9%a2%88%e5%88%b0%e9%ab%98%e6%80%a7%e8%83%bd%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/82975.html","title":{"rendered":"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84"},"content":{"rendered":"<h2>Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218&#xff1a;\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725072649-6a646539e71be.jpg\" alt=\"cover\" \/><\/p>\n<h3>\u4e00\u3001\u9ed8\u8ba4\u5185\u6838\u53c2\u6570\u7684\u751f\u4ea7\u9690\u60a3&#xff1a;\u90a3\u4e9b\u88ab\u5ffd\u89c6\u7684\u7cfb\u7edf\u74f6\u9888<\/h3>\n<p>\u4e00\u53f0 32 \u6838 64GB \u5185\u5b58\u7684\u670d\u52a1\u5668&#xff0c;\u8fd0\u884c Java \u5fae\u670d\u52a1\u96c6\u7fa4\u3002\u67d0\u6b21\u5927\u4fc3\u671f\u95f4&#xff0c;\u670d\u52a1\u54cd\u5e94\u5ef6\u8fdf\u98d9\u5347&#xff0c;\u6392\u67e5\u53d1\u73b0\u5e76\u975e\u5e94\u7528\u5c42\u95ee\u9898&#xff0c;\u800c\u662f\u5185\u6838\u53c2\u6570\u672a\u4f18\u5316&#xff1a;TCP \u8fde\u63a5\u961f\u5217\u6ea2\u51fa\u5bfc\u81f4\u5927\u91cf SYN \u88ab\u4e22\u5f03&#xff0c;\u6587\u4ef6\u63cf\u8ff0\u7b26\u8017\u5c3d\u5bfc\u81f4\u65b0\u8fde\u63a5\u65e0\u6cd5\u5efa\u7acb&#xff0c;SWAP \u9891\u7e41\u6362\u9875\u5bfc\u81f4 GC \u505c\u987f\u52a0\u5267\u3002\u8fd9\u4e9b\u95ee\u9898\u5728\u4f4e\u8d1f\u8f7d\u65f6\u4e0d\u660e\u663e&#xff0c;\u9ad8\u5e76\u53d1\u4e0b\u77ac\u95f4\u66b4\u9732\u3002<\/p>\n<p>Linux \u5185\u6838\u9ed8\u8ba4\u53c2\u6570\u9762\u5411\u901a\u7528\u573a\u666f&#xff0c;\u4e0d\u9002\u5408\u9ad8\u5e76\u53d1\u670d\u52a1\u5668\u3002\u672c\u6587\u5c06\u4ece\u7f51\u7edc\u3001\u6587\u4ef6\u7cfb\u7edf\u3001\u5185\u5b58\u4e09\u4e2a\u7ef4\u5ea6&#xff0c;\u7ed9\u51fa\u751f\u4ea7\u7ea7\u5185\u6838\u8c03\u4f18\u65b9\u6848\u3002<\/p>\n<h3>\u4e8c\u3001Linux \u5185\u6838\u8d44\u6e90\u7ba1\u7406\u673a\u5236\u4e0e\u8c03\u4f18\u539f\u7406<\/h3>\n<p>\u5185\u6838\u8c03\u4f18\u7684\u672c\u8d28\u662f\u8c03\u6574\u8d44\u6e90\u5206\u914d\u7b56\u7565&#xff0c;\u8ba9\u7cfb\u7edf\u5728\u9ad8\u8d1f\u8f7d\u4e0b\u4f9d\u7136\u4fdd\u6301\u7a33\u5b9a\u3002\u7406\u89e3\u5e95\u5c42\u673a\u5236\u624d\u80fd\u907f\u514d\u76f2\u76ee\u8c03\u53c2\u3002<\/p>\n<p>flowchart TD<br \/>\n    subgraph \u7f51\u7edc\u6808<br \/>\n        N1[\u5ba2\u6237\u7aef SYN] &#8211;&gt; N2[SYN \u961f\u5217&lt;br\/&gt;net.ipv4.tcp_max_syn_backlog]<br \/>\n        N2 &#8211;&gt; N3[ACCEPT \u961f\u5217&lt;br\/&gt;net.core.somaxconn]<br \/>\n        N3 &#8211;&gt; N4[\u5e94\u7528\u5c42 accept]<br \/>\n        N2 &#8211;&gt;|\u961f\u5217\u6ee1| N5[SYN \u4e22\u5f03&lt;br\/&gt;\u89e6\u53d1\u91cd\u4f20]<br \/>\n        N3 &#8211;&gt;|\u961f\u5217\u6ee1| N6[\u8fde\u63a5\u88ab\u62d2]<br \/>\n    end<\/p>\n<p>    subgraph \u6587\u4ef6\u63cf\u8ff0\u7b26<br \/>\n        F1[\u7cfb\u7edf\u7ea7\u9650\u5236&lt;br\/&gt;fs.file-max]<br \/>\n        F2[\u7528\u6237\u7ea7\u9650\u5236&lt;br\/&gt;nofile (limits.conf)]<br \/>\n        F3[\u8fdb\u7a0b\u7ea7\u9650\u5236&lt;br\/&gt;RLIMIT_NOFILE]<br \/>\n        F1 &#8211;&gt; F2 &#8211;&gt; F3<br \/>\n    end<\/p>\n<p>    subgraph \u5185\u5b58\u7ba1\u7406<br \/>\n        M1[\u7269\u7406\u5185\u5b58] &#8211;&gt; M2[Page Cache&lt;br\/&gt;\u6587\u4ef6\u7f13\u5b58]<br \/>\n        M1 &#8211;&gt; M3[SWAP \u7a7a\u95f4&lt;br\/&gt;\u6362\u9875\u7f13\u51b2]<br \/>\n        M2 &#8211;&gt;|swappiness \u9ad8| M3<br \/>\n        M3 &#8211;&gt;|\u6362\u9875| M4[GC \u505c\u987f&lt;br\/&gt;IO \u7b49\u5f85]<br \/>\n    end<\/p>\n<p>\u5173\u952e\u673a\u5236\u89e3\u6790&#xff1a;<\/p>\n<ul>\n<li>TCP \u8fde\u63a5\u961f\u5217&#xff1a;Linux TCP \u8fde\u63a5\u5efa\u7acb\u5206\u4e24\u9636\u6bb5\u3002SYN \u961f\u5217\u5b58\u50a8\u534a\u8fde\u63a5&#xff08;\u6536\u5230 SYN&#xff0c;\u672a\u5b8c\u6210\u4e09\u6b21\u63e1\u624b&#xff09;&#xff0c;ACCEPT \u961f\u5217\u5b58\u50a8\u5168\u8fde\u63a5&#xff08;\u5df2\u5b8c\u6210\u4e09\u6b21\u63e1\u624b&#xff0c;\u7b49\u5f85\u5e94\u7528 accept&#xff09;\u3002\u4e24\u4e2a\u961f\u5217\u6ee1\u90fd\u4f1a\u5bfc\u81f4\u8fde\u63a5\u5931\u8d25\u3002<\/li>\n<li>\u6587\u4ef6\u63cf\u8ff0\u7b26&#xff1a;Linux \u4e2d\u4e00\u5207\u7686\u6587\u4ef6&#xff0c;\u7f51\u7edc\u8fde\u63a5\u4e5f\u5360\u7528\u6587\u4ef6\u63cf\u8ff0\u7b26\u3002\u9650\u5236\u5206\u4e09\u7ea7&#xff1a;\u7cfb\u7edf\u7ea7&#xff08;fs.file-max&#xff09;\u3001\u7528\u6237\u7ea7&#xff08;nofile&#xff09;\u3001\u8fdb\u7a0b\u7ea7&#xff08;RLIMIT_NOFILE&#xff09;\u3002\u5fc5\u987b\u4e09\u7ea7\u90fd\u8c03\u5927\u624d\u6709\u6548\u3002<\/li>\n<li>SWAP \u4e0e swappiness&#xff1a;swappiness \u63a7\u5236\u5185\u6838\u5c06\u5185\u5b58\u9875\u6362\u51fa\u5230 SWAP \u7684\u503e\u5411\u3002\u503c\u8d8a\u9ad8\u8d8a\u79ef\u6781\u6362\u9875\u3002\u5bf9 Java \u5e94\u7528\u6765\u8bf4&#xff0c;SWAP \u6362\u9875\u4f1a\u5bfc\u81f4 GC \u505c\u987f\u4ece\u6beb\u79d2\u7ea7\u98d9\u5347\u5230\u79d2\u7ea7&#xff0c;\u5fc5\u987b\u5c3d\u91cf\u7981\u7528\u3002<\/li>\n<\/ul>\n<h3>\u4e09\u3001Linux \u5185\u6838\u8c03\u4f18\u7684\u751f\u4ea7\u7ea7\u914d\u7f6e<\/h3>\n<h4>3.1 \u7f51\u7edc\u53c2\u6570\u4f18\u5316<\/h4>\n<p># \/etc\/sysctl.d\/99-production.conf<br \/>\n# \u7f51\u7edc\u53c2\u6570\u4f18\u5316 &#8211; \u9ad8\u5e76\u53d1 TCP \u670d\u52a1\u5668<\/p>\n<p># &#061;&#061;&#061; \u8fde\u63a5\u961f\u5217 &#061;&#061;&#061;<br \/>\n# SYN \u961f\u5217\u6700\u5927\u957f\u5ea6&#xff08;\u534a\u8fde\u63a5\u961f\u5217&#xff09;<br \/>\nnet.ipv4.tcp_max_syn_backlog &#061; 65535<br \/>\n# ACCEPT \u961f\u5217\u6700\u5927\u957f\u5ea6&#xff08;\u5168\u8fde\u63a5\u961f\u5217&#xff09;<br \/>\nnet.core.somaxconn &#061; 65535<br \/>\n# \u6bcf\u4e2a\u7aef\u53e3\u7684 SYN \u961f\u5217\u957f\u5ea6&#xff08;\u8986\u76d6 somaxconn&#xff09;<br \/>\nnet.ipv4.tcp_syncookies &#061; 1          # \u542f\u7528 SYN Cookie \u9632\u5fa1 SYN Flood<\/p>\n<p># &#061;&#061;&#061; TCP \u7f13\u51b2\u533a &#061;&#061;&#061;<br \/>\n# TCP \u8bfb\u5199\u7f13\u51b2\u533a\u6700\u5c0f\/\u9ed8\u8ba4\/\u6700\u5927\u503c&#xff08;\u5b57\u8282&#xff09;<br \/>\nnet.ipv4.tcp_rmem &#061; 4096 87380 16777216<br \/>\nnet.ipv4.tcp_wmem &#061; 4096 65536 16777216<br \/>\n# Socket \u8bfb\u5199\u7f13\u51b2\u533a\u9ed8\u8ba4\u503c<br \/>\nnet.core.rmem_default &#061; 262144<br \/>\nnet.core.wmem_default &#061; 262144<br \/>\n# Socket \u8bfb\u5199\u7f13\u51b2\u533a\u6700\u5927\u503c<br \/>\nnet.core.rmem_max &#061; 16777216<br \/>\nnet.core.wmem_max &#061; 16777216<\/p>\n<p># &#061;&#061;&#061; TCP \u8d85\u65f6\u4e0e\u56de\u6536 &#061;&#061;&#061;<br \/>\n# FIN_WAIT-2 \u72b6\u6001\u8d85\u65f6\u65f6\u95f4&#xff08;\u79d2&#xff09;&#xff0c;\u9ed8\u8ba4 60s \u592a\u957f<br \/>\nnet.ipv4.tcp_fin_timeout &#061; 15<br \/>\n# TIME_WAIT \u72b6\u6001\u8d85\u65f6\u65f6\u95f4&#xff08;\u79d2&#xff09;&#xff0c;\u9ed8\u8ba4 60s<br \/>\n# \u6ce8\u610f&#xff1a;\u6b64\u53c2\u6570\u5728 Linux 4.12&#043; \u4e2d\u5df2\u5e9f\u5f03&#xff0c;\u6539\u7528 tcp_tw_reuse<br \/>\nnet.ipv4.tcp_tw_reuse &#061; 1           # \u5141\u8bb8\u590d\u7528 TIME_WAIT \u8fde\u63a5<br \/>\n# \u7cfb\u7edf\u6700\u5927 TIME_WAIT \u5957\u63a5\u5b57\u6570<br \/>\nnet.ipv4.tcp_max_tw_buckets &#061; 65535<\/p>\n<p># &#061;&#061;&#061; TCP Keepalive &#061;&#061;&#061;<br \/>\n# TCP Keepalive \u63a2\u6d4b\u95f4\u9694&#xff08;\u79d2&#xff09;<br \/>\nnet.ipv4.tcp_keepalive_time &#061; 600<br \/>\nnet.ipv4.tcp_keepalive_intvl &#061; 30<br \/>\nnet.ipv4.tcp_keepalive_probes &#061; 5<\/p>\n<p># &#061;&#061;&#061; \u8fde\u63a5\u8ddf\u8e2a&#xff08;Conntrack&#xff09;&#061;&#061;&#061;<br \/>\n# \u8fde\u63a5\u8ddf\u8e2a\u8868\u6700\u5927\u6761\u76ee\u6570&#xff08;\u9ad8\u5e76\u53d1\u5fc5\u987b\u8c03\u5927&#xff09;<br \/>\nnet.netfilter.nf_conntrack_max &#061; 1048576<br \/>\n# \u8fde\u63a5\u8ddf\u8e2a\u8d85\u65f6&#xff08;\u79d2&#xff09;<br \/>\nnet.netfilter.nf_conntrack_tcp_timeout_established &#061; 7200<\/p>\n<p># &#061;&#061;&#061; \u672c\u5730\u7aef\u53e3\u8303\u56f4 &#061;&#061;&#061;<br \/>\n# \u4e34\u65f6\u7aef\u53e3\u8303\u56f4&#xff08;\u7528\u4e8e\u51fa\u7ad9\u8fde\u63a5&#xff09;<br \/>\nnet.ipv4.ip_local_port_range &#061; 1024 65535<\/p>\n<p># &#061;&#061;&#061; \u7f51\u5361\u961f\u5217 &#061;&#061;&#061;<br \/>\n# \u7f51\u5361\u63a5\u6536\u961f\u5217\u6700\u5927\u957f\u5ea6<br \/>\nnet.core.netdev_max_backlog &#061; 65536<br \/>\n# \u7f51\u5361\u53d1\u9001\u961f\u5217\u957f\u5ea6<br \/>\nnet.core.dev_weight &#061; 64<\/p>\n<h4>3.2 \u6587\u4ef6\u7cfb\u7edf\u4e0e\u5185\u5b58\u53c2\u6570\u4f18\u5316<\/h4>\n<p># \/etc\/sysctl.d\/99-production.conf&#xff08;\u7eed&#xff09;<\/p>\n<p># &#061;&#061;&#061; \u6587\u4ef6\u63cf\u8ff0\u7b26 &#061;&#061;&#061;<br \/>\n# \u7cfb\u7edf\u7ea7\u6700\u5927\u6587\u4ef6\u63cf\u8ff0\u7b26\u6570<br \/>\nfs.file-max &#061; 2097152<br \/>\n# Inotify \u6700\u5927\u5b9e\u4f8b\u6570&#xff08;\u65e5\u5fd7\u91c7\u96c6\u573a\u666f\u9700\u8981&#xff09;<br \/>\nfs.inotify.max_user_instances &#061; 8192<br \/>\nfs.inotify.max_user_watches &#061; 524288<\/p>\n<p># &#061;&#061;&#061; \u5185\u5b58\u7ba1\u7406 &#061;&#061;&#061;<br \/>\n# SWAP \u503e\u5411&#xff1a;0 &#061; \u5c3d\u91cf\u4e0d\u7528 SWAP&#xff0c;100 &#061; \u79ef\u6781\u4f7f\u7528 SWAP<br \/>\n# Java\/\u6570\u636e\u5e93\u670d\u52a1\u5668\u5efa\u8bae\u8bbe\u4e3a 1-10<br \/>\nvm.swappiness &#061; 1<br \/>\n# \u810f\u9875\u56de\u5199\u9608\u503c&#xff08;\u767e\u5206\u6bd4&#xff09;<br \/>\n# \u810f\u9875\u5360\u6bd4\u8d85\u8fc7\u6b64\u503c\u89e6\u53d1\u540e\u53f0\u56de\u5199<br \/>\nvm.dirty_background_ratio &#061; 5<br \/>\n# \u810f\u9875\u5360\u6bd4\u8d85\u8fc7\u6b64\u503c\u89e6\u53d1\u540c\u6b65\u56de\u5199&#xff08;\u963b\u585e\u5199\u5165&#xff09;<br \/>\nvm.dirty_ratio &#061; 10<br \/>\n# \u810f\u9875\u6700\u5927\u5b58\u6d3b\u65f6\u95f4&#xff08;\u767e\u5206\u4e4b\u4e00\u79d2&#xff09;<br \/>\nvm.dirty_expire_centisecs &#061; 3000<\/p>\n<p># &#061;&#061;&#061; \u5185\u5b58\u8fc7\u91cf\u5206\u914d\u7b56\u7565 &#061;&#061;&#061;<br \/>\n# 0 &#061; \u4e0d\u5141\u8bb8\u8fc7\u91cf\u5206\u914d&#xff0c;1 &#061; \u5141\u8bb8\u8fc7\u91cf\u5206\u914d&#xff0c;2 &#061; \u4e25\u683c\u9650\u5236<br \/>\n# \u6570\u636e\u5e93\u670d\u52a1\u5668\u5efa\u8bae\u8bbe\u4e3a 2&#xff0c;\u5e94\u7528\u670d\u52a1\u5668\u5efa\u8bae\u8bbe\u4e3a 0<br \/>\nvm.overcommit_memory &#061; 0<\/p>\n<p># &#061;&#061;&#061; \u5927\u9875\u5185\u5b58&#xff08;HugePages&#xff09;&#061;&#061;&#061;<br \/>\n# \u9002\u7528\u4e8e\u6570\u636e\u5e93\u548c JVM&#xff0c;\u51cf\u5c11 TLB Miss<br \/>\n# \u9884\u7559 8GB \u5927\u9875&#xff08;\u6bcf\u9875 2MB&#xff0c;\u5171 4096 \u9875&#xff09;<br \/>\nvm.nr_hugepages &#061; 4096<\/p>\n<p># &#061;&#061;&#061; \u5185\u6838\u4fe1\u53f7\u91cf &#061;&#061;&#061;<br \/>\n# \u4fe1\u53f7\u91cf\u6570\u7ec4\u6570 | \u6bcf\u6570\u7ec4\u4fe1\u53f7\u91cf\u6570 | \u4fe1\u53f7\u91cf\u603b\u6570 | | \u89e3\u9664\u4fe1\u53f7\u91cf\u9650\u5236<br \/>\nkernel.sem &#061; 250 32000 100 128<\/p>\n<h4>3.3 \u7528\u6237\u7ea7\u8d44\u6e90\u9650\u5236<\/h4>\n<p># \/etc\/security\/limits.d\/99-production.conf<br \/>\n# \u7528\u6237\u7ea7\u8d44\u6e90\u9650\u5236\u914d\u7f6e<\/p>\n<p># \u6587\u4ef6\u63cf\u8ff0\u7b26\u8f6f\u786c\u9650\u5236<br \/>\n* soft nofile 1048576<br \/>\n* hard nofile 1048576<\/p>\n<p># \u8fdb\u7a0b\u6570\u8f6f\u786c\u9650\u5236<br \/>\n* soft nproc 65535<br \/>\n* hard nproc 65535<\/p>\n<p># \u6838\u5fc3\u8f6c\u50a8\u6587\u4ef6\u5927\u5c0f&#xff08;unlimited &#061; \u4e0d\u9650\u5236&#xff09;<br \/>\n* soft core unlimited<br \/>\n* hard core unlimited<\/p>\n<p># \u5185\u5b58\u9501\u5b9a\u9650\u5236&#xff08;\u7528\u4e8e HugePages \u573a\u666f&#xff09;<br \/>\n* soft memlock unlimited<br \/>\n* hard memlock unlimited<\/p>\n<p># Stack \u5927\u5c0f<br \/>\n* soft stack 8192<br \/>\n* hard stack 8192<\/p>\n<h4>3.4 \u7cfb\u7edf\u8c03\u4f18\u9a8c\u8bc1\u811a\u672c<\/h4>\n<p>#!\/bin\/bash<br \/>\n# sysctl-check.sh &#8211; \u5185\u6838\u53c2\u6570\u9a8c\u8bc1\u811a\u672c<br \/>\n# \u5728\u8c03\u4f18\u524d\u540e\u8fd0\u884c&#xff0c;\u5bf9\u6bd4\u53c2\u6570\u503c\u4e0e\u63a8\u8350\u503c<\/p>\n<p>set -euo pipefail<\/p>\n<p># \u989c\u8272\u5b9a\u4e49<br \/>\nRED&#061;&#039;\\\\033[0;31m&#039;<br \/>\nGREEN&#061;&#039;\\\\033[0;32m&#039;<br \/>\nYELLOW&#061;&#039;\\\\033[1;33m&#039;<br \/>\nNC&#061;&#039;\\\\033[0m&#039;<\/p>\n<p># \u63a8\u8350\u53c2\u6570\u503c<br \/>\ndeclare -A RECOMMENDED&#061;(<br \/>\n    [&#034;net.core.somaxconn&#034;]&#061;&#034;65535&#034;<br \/>\n    [&#034;net.ipv4.tcp_max_syn_backlog&#034;]&#061;&#034;65535&#034;<br \/>\n    [&#034;net.ipv4.tcp_tw_reuse&#034;]&#061;&#034;1&#034;<br \/>\n    [&#034;net.ipv4.tcp_fin_timeout&#034;]&#061;&#034;15&#034;<br \/>\n    [&#034;net.ipv4.ip_local_port_range&#034;]&#061;&#034;1024 65535&#034;<br \/>\n    [&#034;vm.swappiness&#034;]&#061;&#034;1&#034;<br \/>\n    [&#034;fs.file-max&#034;]&#061;&#034;2097152&#034;<br \/>\n    [&#034;net.netfilter.nf_conntrack_max&#034;]&#061;&#034;1048576&#034;<br \/>\n    [&#034;vm.dirty_ratio&#034;]&#061;&#034;10&#034;<br \/>\n    [&#034;vm.dirty_background_ratio&#034;]&#061;&#034;5&#034;<br \/>\n)<\/p>\n<p>echo &#034;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#034;<br \/>\necho &#034;  Linux \u5185\u6838\u53c2\u6570\u9a8c\u8bc1\u62a5\u544a&#034;<br \/>\necho &#034;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#034;<br \/>\necho &#034;&#034;<\/p>\n<p>PASS&#061;0<br \/>\nWARN&#061;0<br \/>\nFAIL&#061;0<\/p>\n<p>for param in &#034;${!RECOMMENDED[&#064;]}&#034;; do<br \/>\n    current&#061;$(sysctl -n &#034;$param&#034; 2&gt;\/dev\/null || echo &#034;NOT_FOUND&#034;)<br \/>\n    recommended&#061;&#034;${RECOMMENDED[$param]}&#034;<\/p>\n<p>    if [[ &#034;$current&#034; &#061;&#061; &#034;NOT_FOUND&#034; ]]; then<br \/>\n        echo -e &#034;${YELLOW}[WARN]${NC} $param &#8211; \u53c2\u6570\u4e0d\u5b58\u5728&#034;<br \/>\n        ((WARN&#043;&#043;))<br \/>\n    elif [[ &#034;$current&#034; &#061;&#061; &#034;$recommended&#034; ]]; then<br \/>\n        echo -e &#034;${GREEN}[PASS]${NC} $param &#061; $current&#034;<br \/>\n        ((PASS&#043;&#043;))<br \/>\n    else<br \/>\n        echo -e &#034;${RED}[FAIL]${NC} $param &#061; $current (\u63a8\u8350: $recommended)&#034;<br \/>\n        ((FAIL&#043;&#043;))<br \/>\n    fi<br \/>\ndone<\/p>\n<p>echo &#034;&#034;<br \/>\necho &#034;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#034;<br \/>\necho &#034;  \u9a8c\u8bc1\u7ed3\u679c: PASS&#061;$PASS WARN&#061;$WARN FAIL&#061;$FAIL&#034;<br \/>\necho &#034;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#034;<\/p>\n<p># \u989d\u5916\u68c0\u67e5&#xff1a;\u6587\u4ef6\u63cf\u8ff0\u7b26\u9650\u5236<br \/>\necho &#034;&#034;<br \/>\necho &#034;&#8212; \u6587\u4ef6\u63cf\u8ff0\u7b26\u9650\u5236 &#8212;&#034;<br \/>\necho &#034;\u7cfb\u7edf\u7ea7: $(sysctl -n fs.file-max)&#034;<br \/>\necho &#034;\u7528\u6237\u7ea7 (soft): $(ulimit -Sn)&#034;<br \/>\necho &#034;\u7528\u6237\u7ea7 (hard): $(ulimit -Hn)&#034;<\/p>\n<p># \u989d\u5916\u68c0\u67e5&#xff1a;\u5f53\u524d\u8fde\u63a5\u8ddf\u8e2a\u4f7f\u7528\u7387<br \/>\nif sysctl -n net.netfilter.nf_conntrack_count &amp;&gt;\/dev\/null; then<br \/>\n    current&#061;$(sysctl -n net.netfilter.nf_conntrack_count)<br \/>\n    max&#061;$(sysctl -n net.netfilter.nf_conntrack_max)<br \/>\n    usage&#061;$(echo &#034;scale&#061;2; $current * 100 \/ $max&#034; | bc)<br \/>\n    echo &#034;&#034;<br \/>\n    echo &#034;&#8212; \u8fde\u63a5\u8ddf\u8e2a\u4f7f\u7528\u7387 &#8212;&#034;<br \/>\n    echo &#034;\u5f53\u524d: $current \/ \u6700\u5927: $max (${usage}%)&#034;<br \/>\n    if (( $(echo &#034;$usage &gt; 80&#034; | bc -l) )); then<br \/>\n        echo -e &#034;${RED}[ALERT]${NC} \u8fde\u63a5\u8ddf\u8e2a\u4f7f\u7528\u7387\u8d85\u8fc7 80%&#034;<br \/>\n    fi<br \/>\nfi<\/p>\n<h4>3.5 \u7f51\u5361\u4e2d\u65ad\u4eb2\u548c\u6027\u4f18\u5316<\/h4>\n<p>#!\/bin\/bash<br \/>\n# irq-affinity.sh &#8211; \u7f51\u5361\u4e2d\u65ad\u4eb2\u548c\u6027\u4f18\u5316<br \/>\n# \u5c06\u7f51\u5361\u4e2d\u65ad\u5206\u6563\u5230\u4e0d\u540c CPU \u6838\u5fc3&#xff0c;\u907f\u514d\u5355\u6838\u74f6\u9888<\/p>\n<p>INTERFACE&#061;&#034;eth0&#034;<\/p>\n<p># \u83b7\u53d6\u7f51\u5361\u961f\u5217\u6570<br \/>\nQUEUE_COUNT&#061;$(ethtool -l &#034;$INTERFACE&#034; 2&gt;\/dev\/null | grep -A1 &#034;Combined&#034; | tail -1 | awk &#039;{print $2}&#039;)<br \/>\nif [[ -z &#034;$QUEUE_COUNT&#034; || &#034;$QUEUE_COUNT&#034; -eq 0 ]]; then<br \/>\n    echo &#034;\u65e0\u6cd5\u83b7\u53d6\u7f51\u5361\u961f\u5217\u6570&#xff0c;\u4f7f\u7528\u9ed8\u8ba4\u503c 4&#034;<br \/>\n    QUEUE_COUNT&#061;4<br \/>\nfi<\/p>\n<p># \u8bbe\u7f6e\u7f51\u5361\u961f\u5217\u6570&#xff08;\u9700\u8981\u7f51\u5361\u652f\u6301&#xff09;<br \/>\nethtool -L &#034;$INTERFACE&#034; combined &#034;$QUEUE_COUNT&#034; 2&gt;\/dev\/null || true<\/p>\n<p>echo &#034;\u7f51\u5361 $INTERFACE \u961f\u5217\u6570: $QUEUE_COUNT&#034;<\/p>\n<p># \u83b7\u53d6 CPU \u6838\u5fc3\u6570<br \/>\nCPU_COUNT&#061;$(nproc)<br \/>\necho &#034;CPU \u6838\u5fc3\u6570: $CPU_COUNT&#034;<\/p>\n<p># \u8bbe\u7f6e\u4e2d\u65ad\u4eb2\u548c\u6027<br \/>\nfor ((i&#061;0; i&lt;QUEUE_COUNT; i&#043;&#043;)); do<br \/>\n    # \u8ba1\u7b97\u76ee\u6807 CPU \u6838\u5fc3&#xff08;\u5206\u6563\u5230\u4e0d\u540c\u6838\u5fc3&#xff09;<br \/>\n    TARGET_CPU&#061;$((i % CPU_COUNT))<br \/>\n    # \u8ba1\u7b97 CPU \u4eb2\u548c\u6027\u63a9\u7801<br \/>\n    CPU_MASK&#061;$((1 &lt;&lt; TARGET_CPU))<\/p>\n<p>    # \u67e5\u627e\u5bf9\u5e94\u7684\u4e2d\u65ad\u53f7<br \/>\n    IRQS&#061;$(grep &#034;$INTERFACE-TxRx-$i&#034; \/proc\/interrupts 2&gt;\/dev\/null | awk -F: &#039;{print $1}&#039; | tr -d &#039; &#039;)<br \/>\n    if [[ -z &#034;$IRQS&#034; ]]; then<br \/>\n        IRQS&#061;$(grep &#034;$INTERFACE-$i&#034; \/proc\/interrupts 2&gt;\/dev\/null | awk -F: &#039;{print $1}&#039; | tr -d &#039; &#039;)<br \/>\n    fi<\/p>\n<p>    for irq in $IRQS; do<br \/>\n        printf &#034;%x&#034; &#034;$CPU_MASK&#034; &gt; &#034;\/proc\/irq\/$irq\/smp_affinity&#034; 2&gt;\/dev\/null<br \/>\n        echo &#034;\u961f\u5217 $i (IRQ $irq) \u2192 CPU $TARGET_CPU&#034;<br \/>\n    done<br \/>\ndone<\/p>\n<p>echo &#034;\u4e2d\u65ad\u4eb2\u548c\u6027\u914d\u7f6e\u5b8c\u6210&#034;<\/p>\n<h3>\u56db\u3001\u5185\u6838\u8c03\u4f18\u7684\u98ce\u9669\u4e0e\u9002\u7528\u8fb9\u754c<\/h3>\n<p>SWAP \u7981\u7528\u7684 OOM \u98ce\u9669&#xff1a;\u5c06 swappiness \u8bbe\u4e3a 0 \u6216 1 \u53ef\u4ee5\u907f\u514d SWAP \u6362\u9875&#xff0c;\u4f46\u5f53\u5185\u5b58\u771f\u6b63\u8017\u5c3d\u65f6&#xff0c;\u5185\u6838\u4f1a\u89e6\u53d1 OOM Killer \u76f4\u63a5\u6740\u8fdb\u7a0b&#xff0c;\u800c\u4e0d\u662f\u6362\u9875\u5ef6\u7f13\u3002\u5efa\u8bae\u914d\u5408\u76d1\u63a7&#xff0c;\u5728\u5185\u5b58\u4f7f\u7528\u7387\u8d85\u8fc7 85% \u65f6\u63d0\u524d\u544a\u8b66&#xff0c;\u9884\u7559\u6269\u5bb9\u65f6\u95f4\u3002<\/p>\n<p>TCP \u53c2\u6570\u7684\u517c\u5bb9\u6027&#xff1a;tcp_tw_reuse&#061;1 \u5141\u8bb8\u590d\u7528 TIME_WAIT \u8fde\u63a5&#xff0c;\u4f46\u5728 NAT \u73af\u5883\u4e0b\u53ef\u80fd\u5bfc\u81f4\u8fde\u63a5\u6df7\u4e71\u3002\u5982\u679c\u670d\u52a1\u5668\u5728 NAT \u540e\u9762\u6216\u4f7f\u7528\u77ed\u8fde\u63a5\u5927\u91cf\u8bbf\u95ee\u5916\u90e8\u670d\u52a1&#xff0c;\u9700\u8981\u8c28\u614e\u542f\u7528\u3002<\/p>\n<p>HugePages \u7684\u5185\u5b58\u9501\u5b9a&#xff1a;HugePages \u5728\u542f\u52a8\u65f6\u9884\u5206\u914d&#xff0c;\u5206\u914d\u540e\u4e0d\u53ef\u91ca\u653e\u7ed9\u5176\u4ed6\u7528\u9014\u3002\u5982\u679c\u5206\u914d\u8fc7\u591a&#xff0c;\u4f1a\u5bfc\u81f4\u666e\u901a\u5185\u5b58\u4e0d\u8db3\u3002\u5efa\u8bae\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8ba1\u7b97&#xff0c;\u9884\u7559 10% \u7684\u666e\u901a\u5185\u5b58\u4f59\u91cf\u3002<\/p>\n<p>\u6587\u4ef6\u63cf\u8ff0\u7b26\u7684\u4e09\u7ea7\u9650\u5236&#xff1a;\u53ea\u8c03\u5927 fs.file-max \u4e0d\u591f&#xff0c;\u7528\u6237\u7ea7&#xff08;limits.conf&#xff09;\u548c\u8fdb\u7a0b\u7ea7&#xff08;\u5bb9\u5668\u5185 ulimit&#xff09;\u4e5f\u5fc5\u987b\u540c\u6b65\u8c03\u6574\u3002K8s \u73af\u5883\u4e2d&#xff0c;\u5bb9\u5668\u7684 ulimit \u7ee7\u627f\u81ea docker daemon \u914d\u7f6e&#xff0c;\u9700\u8981\u5728 containerd\/docker \u914d\u7f6e\u4e2d\u7edf\u4e00\u8bbe\u7f6e\u3002<\/p>\n<p>\u4e2d\u65ad\u4eb2\u548c\u6027\u4e0e CPU \u70ed\u70b9&#xff1a;\u5c06\u7f51\u5361\u4e2d\u65ad\u7ed1\u5b9a\u5230\u7279\u5b9a CPU \u53ef\u4ee5\u51cf\u5c11\u7f13\u5b58\u6296\u52a8&#xff0c;\u4f46\u5982\u679c\u7ed1\u5b9a\u7684 CPU \u8fd8\u8fd0\u884c\u5176\u4ed6\u9ad8\u8d1f\u8f7d\u4efb\u52a1&#xff0c;\u53cd\u800c\u4f1a\u9020\u6210 CPU \u70ed\u70b9\u3002\u5efa\u8bae\u5c06\u7f51\u5361\u4e2d\u65ad\u7ed1\u5b9a\u5230\u9694\u79bb\u7684 CPU \u6838\u5fc3&#xff08;\u901a\u8fc7 isolcpus \u53c2\u6570\u9694\u79bb&#xff09;\u3002<\/p>\n<h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<p>Linux \u5185\u6838\u8c03\u4f18\u662f\u9ad8\u5e76\u53d1\u670d\u52a1\u5668\u7684\u5fc5\u4fee\u8bfe&#xff0c;\u6838\u5fc3\u539f\u5219\u662f&#034;\u8ba9\u5185\u6838\u4e3a\u4f60\u7684\u573a\u666f\u670d\u52a1&#xff0c;\u800c\u4e0d\u662f\u4e3a\u901a\u7528\u573a\u666f\u670d\u52a1&#034;\u3002\u4e09\u4e2a\u4f18\u5316\u7ef4\u5ea6\u6309\u5f71\u54cd\u6392\u5e8f&#xff1a;\u7f51\u7edc\u53c2\u6570 &gt; \u5185\u5b58\u53c2\u6570 &gt; \u6587\u4ef6\u7cfb\u7edf\u53c2\u6570\u3002\u7f51\u7edc\u53c2\u6570\u76f4\u63a5\u5f71\u54cd\u8fde\u63a5\u5904\u7406\u80fd\u529b&#xff0c;\u5185\u5b58\u53c2\u6570\u5f71\u54cd GC \u548c IO \u6027\u80fd&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u53c2\u6570\u5f71\u54cd\u8fde\u63a5\u6570\u4e0a\u9650\u3002<\/p>\n<p>\u843d\u5730\u8def\u7ebf\u5efa\u8bae&#xff1a;\u7b2c\u4e00\u6b65&#xff0c;\u8fd0\u884c sysctl-check.sh \u8bc4\u4f30\u5f53\u524d\u53c2\u6570\u4e0e\u63a8\u8350\u503c\u7684\u5dee\u8ddd&#xff1b;\u7b2c\u4e8c\u6b65&#xff0c;\u6309\u4f18\u5148\u7ea7\u8c03\u6574\u7f51\u7edc\u53c2\u6570&#xff0c;\u91cd\u70b9\u5173\u6ce8\u8fde\u63a5\u961f\u5217\u548c TIME_WAIT \u56de\u6536&#xff1b;\u7b2c\u4e09\u6b65&#xff0c;\u8c03\u6574\u5185\u5b58\u53c2\u6570&#xff0c;\u7981\u7528 SWAP\u3001\u4f18\u5316\u810f\u9875\u56de\u5199&#xff1b;\u7b2c\u56db\u6b65&#xff0c;\u8c03\u6574\u6587\u4ef6\u63cf\u8ff0\u7b26\u9650\u5236&#xff0c;\u786e\u4fdd\u4e09\u7ea7\u9650\u5236\u4e00\u81f4&#xff1b;\u7b2c\u4e94\u6b65&#xff0c;\u4f18\u5316\u7f51\u5361\u4e2d\u65ad\u4eb2\u548c\u6027&#xff0c;\u5206\u6563\u4e2d\u65ad\u5904\u7406\u8d1f\u8f7d\u3002\u6bcf\u6b21\u8c03\u4f18\u540e\u90fd\u8981\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5&#xff0c;\u9a8c\u8bc1\u6548\u679c\u5e76\u89c2\u5bdf\u662f\u5426\u6709\u526f\u4f5c\u7528\u3002\u8c03\u4f18\u4e0d\u662f\u4e00\u6b21\u6027\u5de5\u4f5c&#xff0c;\u968f\u7740\u4e1a\u52a1\u589e\u957f\u9700\u8981\u5b9a\u671f\u590d\u8bc4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218&#xff1a;\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84\u4e00\u3001\u9ed8\u8ba4\u5185\u6838\u53c2\u6570\u7684\u751f\u4ea7\u9690\u60a3&#xff1a;\u90a3\u4e9b\u88ab\u5ffd\u89c6\u7684\u7cfb\u7edf\u74f6\u9888<br \/>\n\u4e00\u53f0 32 \u6838 64GB \u5185\u5b58\u7684\u670d\u52a1\u5668&#xff0c;\u8fd0\u884c Java \u5fae\u670d\u52a1\u96c6\u7fa4\u3002\u67d0\u6b21\u5927\u4fc3\u671f\u95f4&#xff0c;\u670d\u52a1\u54cd\u5e94\u5ef6\u8fdf\u98d9\u5347&#xff0c;\u6392\u67e5\u53d1\u73b0\u5e76\u975e\u5e94\u7528\u5c42\u95ee\u9898&#xff0c;\u800c\u662f\u5185\u6838\u53c2\u6570\u672a\u4f18\u5316&#xff1a;TCP \u8fde\u63a5\u961f\u5217\u6ea2\u51fa\u5bfc\u81f4\u5927\u91cf SYN \u88ab\u4e22\u5f03&#xff0c;\u6587\u4ef6\u63cf\u8ff0\u7b26\u8017\u5c3d\u5bfc\u81f4\u65b0\u8fde\u63a5\u65e0\u6cd5\u5efa\u7acb&#xff0c;SWAP \u9891<\/p>\n","protected":false},"author":2,"featured_media":82974,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1493,121,1348],"topic":[],"class_list":["post-82975","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-k8s","tag-121","tag-1348"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84 - \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\/82975.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218&#xff1a;\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84\u4e00\u3001\u9ed8\u8ba4\u5185\u6838\u53c2\u6570\u7684\u751f\u4ea7\u9690\u60a3&#xff1a;\u90a3\u4e9b\u88ab\u5ffd\u89c6\u7684\u7cfb\u7edf\u74f6\u9888 \u4e00\u53f0 32 \u6838 64GB \u5185\u5b58\u7684\u670d\u52a1\u5668&#xff0c;\u8fd0\u884c Java \u5fae\u670d\u52a1\u96c6\u7fa4\u3002\u67d0\u6b21\u5927\u4fc3\u671f\u95f4&#xff0c;\u670d\u52a1\u54cd\u5e94\u5ef6\u8fdf\u98d9\u5347&#xff0c;\u6392\u67e5\u53d1\u73b0\u5e76\u975e\u5e94\u7528\u5c42\u95ee\u9898&#xff0c;\u800c\u662f\u5185\u6838\u53c2\u6570\u672a\u4f18\u5316&#xff1a;TCP \u8fde\u63a5\u961f\u5217\u6ea2\u51fa\u5bfc\u81f4\u5927\u91cf SYN \u88ab\u4e22\u5f03&#xff0c;\u6587\u4ef6\u63cf\u8ff0\u7b26\u8017\u5c3d\u5bfc\u81f4\u65b0\u8fde\u63a5\u65e0\u6cd5\u5efa\u7acb&#xff0c;SWAP \u9891\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/82975.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-25T07:26:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725072649-6a646539e71be.jpg\" \/>\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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82975.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/82975.html\",\"name\":\"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-25T07:26:51+00:00\",\"dateModified\":\"2026-07-25T07:26:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/82975.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/82975.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82975.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84\"}]},{\"@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 \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84 - \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\/82975.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218&#xff1a;\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84\u4e00\u3001\u9ed8\u8ba4\u5185\u6838\u53c2\u6570\u7684\u751f\u4ea7\u9690\u60a3&#xff1a;\u90a3\u4e9b\u88ab\u5ffd\u89c6\u7684\u7cfb\u7edf\u74f6\u9888 \u4e00\u53f0 32 \u6838 64GB \u5185\u5b58\u7684\u670d\u52a1\u5668&#xff0c;\u8fd0\u884c Java \u5fae\u670d\u52a1\u96c6\u7fa4\u3002\u67d0\u6b21\u5927\u4fc3\u671f\u95f4&#xff0c;\u670d\u52a1\u54cd\u5e94\u5ef6\u8fdf\u98d9\u5347&#xff0c;\u6392\u67e5\u53d1\u73b0\u5e76\u975e\u5e94\u7528\u5c42\u95ee\u9898&#xff0c;\u800c\u662f\u5185\u6838\u53c2\u6570\u672a\u4f18\u5316&#xff1a;TCP \u8fde\u63a5\u961f\u5217\u6ea2\u51fa\u5bfc\u81f4\u5927\u91cf SYN \u88ab\u4e22\u5f03&#xff0c;\u6587\u4ef6\u63cf\u8ff0\u7b26\u8017\u5c3d\u5bfc\u81f4\u65b0\u8fde\u63a5\u65e0\u6cd5\u5efa\u7acb&#xff0c;SWAP \u9891","og_url":"https:\/\/www.wsisp.com\/helps\/82975.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-25T07:26:51+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725072649-6a646539e71be.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/82975.html","url":"https:\/\/www.wsisp.com\/helps\/82975.html","name":"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-25T07:26:51+00:00","dateModified":"2026-07-25T07:26:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/82975.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/82975.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/82975.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u670d\u52a1\u5668\u5185\u6838\u8c03\u4f18\u5b9e\u6218\uff1a\u4ece\u7cfb\u7edf\u74f6\u9888\u5230\u9ad8\u6027\u80fd\u8fd0\u884c\u7684\u53c2\u6570\u4f18\u5316\u8def\u5f84"}]},{"@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\/82975","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=82975"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82975\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/82974"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=82975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=82975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=82975"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=82975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}