{"id":16447,"date":"2023-11-23T20:08:17","date_gmt":"2023-11-23T12:08:17","guid":{"rendered":"https:\/\/www.linuxcool.com\/srjxlnhcssl"},"modified":"2023-11-23T20:08:17","modified_gmt":"2023-11-23T12:08:17","slug":"srjxlnhcssl","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/srjxlnhcssl","title":{"rendered":"\u6df1\u5165\u89e3\u6790Linux\u5185\u6838\u53c2\u6570\u793a\u4f8b"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5b83\u5b9a\u4e49\u4e86linux\u5185\u6838\u5c06\u540c\u65f6\u4fdd\u6301\u591a\u5c11\u4e2aSYN_RECEIVED\u72b6\u6001\u7684\u8054\u63a5\u3002\u5b83\u5b9a\u4e49<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u5c06\u540c\u65f6\u6253\u5f00\u7684\u6587\u4ef6\u63cf\u8ff0\u7b26\u7684\u6570\u91cf.\u5b83\u5b9a\u4e49\u4e86\u5f53\u5e94\u7528\u7a0b\u5e8f\u5c1d\u8bd5\u4f7f\u7528\u8d85\u8fc7\u6570\u5b66\u663e\u5b58\u65f6\u3001linux\u4e2d\u5185\u6838\u53c2\u6570\u7684\u793a\u4f8b\u5256\u6790\u662f\u54ea\u4e9b\uff1f<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a>\u4e2d\u5185\u6838\u53c2\u6570\u7684\u793a\u4f8b\u5256\u6790\uff1f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Linux\u5185\u6838\u53c2\u6570\u53ef\u4ee5\u62ff\u6765\u63a7\u5236\u5185\u6838\u884c\u4e3a\uff0c\u4ee5\u5b9e\u73b0\u591a\u6837\u5316\u8bbe\u7f6e\u3002\u4e0b\u8fb9\u662f\u4e00\u4e2a\u793a\u4f8b\u5256\u6790\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>1.vm.swappity\uff1a\u9ed8\u8ba4\u503c\u662f60\uff0c\u5b83\u63a7\u5236\u7740\u7cfb\u7edf\u5728\u4f7f\u7528\u5316\u5b66\u663e\u5b58\u548c\u4ea4\u6362\u663e\u5b58\u4e4b\u95f4\u7684\u5e73\u8861\u3002\u5047\u5982\u503c\u88ab\u8bbe\u7f6e\u4e3a0\u3001\u5185\u6838\u5c06\u4f18\u5148\u5c06\u6570\u636e\u50a8\u5b58\u5728\u6570\u5b66\u663e\u5b58\u4e2d\uff0c\u800c\u4e0d\u662f\u4ea4\u6362\u663e\u5b58\uff1b\u5047\u5982\u503c\u88ab\u8bbe\u7f6e\u4e3a100\u3001\u5185\u6838\u90fd\u4f1a\u4f18\u5148\u5c06\u6570\u636e\u50a8\u5b58\u5230\u4ea4\u6362\u663e\u5b58\u4e2d\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>2.fs.file-max\uff1a\u9ed8\u8ba4\u503c\u662f1048576\uff0c\u5b83\u8868\u793a\u4e86\u7cfb\u7edf\u540c\u65f6\u53ef\u4ee5\u6253\u5f00\u7684\u6587\u4ef6\u6570\u76ee\u3002\u5047\u5982\u987b\u8981\u589e\u5f3a\u7cfb\u7edf\u53ef\u4ee5\u6253\u5f00\u7684\u6587\u4ef6\u6570\u76ee\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u503c\u8bbe\u7f6e\u5f97\u66f4\u9ad8.<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>3.\u5185\u6838.id_max\uff1a\u9ed8\u8ba4\u503c\u662f32768\uff0c\u5b83\u8868\u793a\u4e86\u7cfb\u7edf\u53ef\u4ee5\u5206\u914d\u7684PID\u7684\u6700\u5927\u503c\u3002\u5047\u5982\u987b\u8981\u589e\u5f3a\u7cfb\u7edf\u53ef\u4ee5\u5206\u914d\u7684Pid\u7684\u6700\u5927\u503c\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u503c\u8bbe\u7f6e\u5f97\u66f4\u9ad8\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Linux\u4e2d\u5185\u6838\u53c2\u6570\u7684\u793a\u4f8b\u5256\u6790\uff1f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Linux\u5185\u6838\u53c2\u6570\u662f\u6307\u63a7\u5236linux\u5185\u6838\u884c\u4e3a\u7684\u53c2\u6570<strong>linux\u4fee\u6539\u5185\u6838\u53c2\u6570<\/strong>\uff0c\u5b83\u4eec\u7531\u5185\u6838\u63d0\u4f9b\uff0c\u53ef\u4ee5\u88ab\u66f4\u6539\u4ee5\u6539\u5584\u7cfb\u7edf\u6027\u80fd\uff0c\u964d\u4f4e\u5404\u7c7b\u9650\u5236\uff0c\u751a\u81f3\u53ef\u4ee5\u7981\u7528\u7279\u5b9a\u7684\u529f\u80fd.<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u793a\u4f8b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>.ipv4.tcp_max_syn_acklog\uff1a\u5b83\u5b9a\u4e49\u4e86linux\u5185\u6838\u5c06\u540c\u65f6\u4fdd\u6301\u591a\u5c11\u4e2aSYN_RECEIVED\u72b6\u6001\u7684\u8054\u63a5\u7f3a\u7701\u503c\u662f128\uff0c\u53ef\u4ee5\u6309\u7167\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>2.fs.file-max\uff1a\u5b83\u5b9a\u4e49\u7cfb\u7edf\u5c06\u540c\u65f6\u6253\u5f00\u7684\u6587\u4ef6\u63cf\u8ff0\u7b26\u7684\u6570\u91cf\u3002\u7f3a\u7701\u503c\u662f1024\u53f7\uff0c\u53ef\u4ee5\u6309\u7167\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>3.vm.swappity\uff1a\u5b83\u5b9a\u4e49\u4e86\u5f53\u5e94\u7528\u7a0b\u5e8f\u5c1d\u8bd5\u4f7f\u7528\u8d85\u8fc7\u6570\u5b66\u663e\u5b58\u65f6\u3001linux\u5185\u6838\u5c06\u4f18\u5148\u4f7f\u7528\u5316\u5b66\u663e\u5b58\u8fd8\u662f\u4ea4\u6362\u7a7a\u95f4\u3002\u7f3a\u7701\u503c\u662f60arm linux\uff0c\u53ef\u4ee5\u6309\u7167\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Linux\u4e2d\u5185\u6838\u53c2\u6570\u7684\u793a\u4f8b\u5256\u6790\u662f\u54ea\u4e9b\uff1f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Linux\u5185\u6838\u53c2\u6570\u7684\u4e00\u4e2a\u793a\u4f8b\u5256\u6790\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Vm.max_map_count\uff1a\u8fd9\u4e2a\u53c2\u6570\u5b9a\u4e49\u4e86\u6bcf\u4f4d\u8fdb\u7a0b\u53ef\u4ee5\u521b\u5efa\u7684\u6700\u5927\u865a\u62df\u663e\u5b58\u6620\u5c04\u6570\u3002\u9ed8\u8ba4\u503c\u4e3a65530\u3001\u5982\u679c\u60a8\u5728VM\u4e2d\u4f7f\u7528ElasticSearch\u3001\u5219\u987b\u8981\u964d\u4f4e\u6b64\u503c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8be5\u53c2\u6570\u5b9a\u4e49\u4e86\u7cfb\u7edf\u961f\u5217\u4e2d\u6536\u5230\u987e\u5ba2\u7aef\u8054\u63a5\u6073\u6c42\u7684\u6700\u5927\u6570\u76ee\u3002\u9ed8\u8ba4\u503c\u4e3a128<strong>linux\u4fee\u6539\u5185\u6838\u53c2\u6570<\/strong>\uff0c\u5047\u5982\u987b\u8981\u5904\u7406\u5927\u91cf\u987e\u5ba2\u7aef\u6073\u6c42\u67e5\u770b\u7cfb\u7edf\u7248\u672clinux\uff0c\u5219\u53ef\u4ee5\u964d\u4f4e\u6b64\u53c2\u6570\u7684\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b83\u5b9a\u4e49\u4e86\u5f53\u5e94\u7528\u7a0b\u5e8f\u5c1d\u8bd5\u4f7f\u7528\u8d85\u8fc7\u7269\u7406\u5185\u5b58\u65f6\u3001linux\u4e2d\u5185\u6838\u53c2\u6570\u7684\u793a\u4f8b\u5206\u6790\u662f\u4ec0\u4e48\uff1fLinux\u4e2d\u5185\u6838\u53c2\u6570\u7684\u793a\u4f8b\u5206\u6790\uff1fLinux\u4e2d\u5185\u6838\u53c2\u6570\u7684\u793a\u4f8b\u5206\u6790\uff1fswappity\uff1a\u5b83\u5b9a\u4e49\u4e86\u5f53\u5e94\u7528\u7a0b\u5e8f\u5c1d\u8bd5\u4f7f\u7528\u8d85\u8fc7\u7269\u7406\u5185\u5b58\u65f6\u3001linux\u5185\u6838\u5c06\u4f18\u5148\u4f7f\u7528\u7269\u7406\u5185\u5b58\u8fd8\u662f\u4ea4\u6362\u7a7a\u95f4\u3002Linux\u4e2d\u5185\u6838\u53c2\u6570\u7684\u793a\u4f8b\u5206\u6790\u662f\u4ec0\u4e48\uff1fLinux\u5185\u6838\u53c2\u6570\u7684\u4e00\u4e2a\u793a\u4f8b\u5206\u6790\u5982\u4e0b\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[604,186,307,971,71],"class_list":["post-16447","post","type-post","status-publish","format-standard","hentry","category-knowledge","tag-nc","tag-nh","tag-cs","tag-dy-3","tag-sl"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/16447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=16447"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/16447\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=16447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=16447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=16447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}