\u52a0\u8f7d\u548c\u5378\u8f7d\u7cfb\u7edf\u5185\u6838<\/strong><\/div>\nmodprobe\u547d\u4ee4\u53ef\u4ee5\u52a8\u6001\u52a0\u8f7d\u548c\u5378\u8f7d\u5185\u6838\u6a21\u5757\uff0c\u5177\u4f53\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n
[root@centos6 ~]# modprobe ip_vs #\u52a8\u6001\u52a0\u8f7dip_vs\u6a21\u5757\r\n[root@centos6 ~]# lsmod | grep ip_vs #\u67e5\u770b\u6a21\u5757\u662f\u5426\u52a0\u8f7d\u6210\u529f\r\n[root@centos6 ~]# modprobe -r ip_vs #\u52a8\u6001\u5378\u8f7dip_vs\u6a21\u5757\r\n<\/pre>\nmodinfo\u547d\u4ee4\u4e5f\u53ef\u4ee5\u67e5\u770b\u5185\u6838\u6a21\u5757\u4fe1\u606f\uff1a<\/p>\n
[root@centos6 ~]# modinfo ip_vs<\/pre>\n\u4fee\u6539\u5185\u6838\u53c2\u6570<\/strong><\/div>\n\u4e34\u65f6\u8c03\u6574\u5185\u6838\u53c2\u6570<\/strong><\/span><\/div>\nLinux\u7cfb\u7edf\u53c2\u6570\u968f\u7740\u7cfb\u7edf\u7684\u542f\u52a8\u4f1a\u88ab\u5199\u5165\u7cfb\u7edf\u5185\u5b58\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539\/proc\u76ee\u5f55\u4e0b\u7684\u5927\u91cf\u6587\u4ef6\u6765\u8c03\u6574\u5185\u6838\u53c2\u6570\uff0c\u5e76\u4e14\u8fd9\u79cd\u8c03\u6574\u662f\u7acb\u5373\u751f\u6548\u7684\uff0c\u4e0b\u9762\u4e3e\u51e0\u4e2a\u4f8b\u5b50\uff1a<\/p>\n
\u5f00\u542f\u5185\u6838\u8def\u7531\u8f6c\u53d1\u529f\u80fd\uff08\u901a\u8fc70\u62161\u8bbe\u7f6e\u5f00\u5173\uff09\uff1a<\/p>\n
[root@centos6 ~]# echo \"1\" > \/proc\/sys\/net\/ipv4\/ip_forward<\/pre>\n\u5f00\u542f\u7981\u6b62\u5176\u5b83\u4e3b\u673aping\u672c\u673a\u529f\u80fd\uff1a<\/p>\n
[root@centos6 ~]# echo \"1\" > \/proc\/sys\/net\/ipv4\/icmp_echo_ignore_all<\/pre>\n\u8c03\u6574\u6240\u6709\u7684\u8fdb\u7a0b\u53ef\u4ee5\u6253\u5f00\u7684\u6587\u4ef6\u603b\u6570\u91cf\uff1a<\/p>\n
[root@centos6 ~]# echo \"108248\" >\/proc\/sys\/fs\/file-max<\/pre>\n\u6c38\u4e45\u8c03\u6574\u5185\u6838\u53c2\u6570<\/strong><\/span><\/div>\n\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\u76f4\u63a5\u4fee\u6539\/proc\u76f8\u5173\u6587\u4ef6\u7684\u65b9\u5f0f\uff0c\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u4e0d\u518d\u6709\u6548\uff0c\u5982\u679c\u5e0c\u671b\u8bbe\u7f6e\u53c2\u6570\u6c38\u4e45\u751f\u6548\uff0c\u53ef\u4ee5\u4fee\u6539\/etc\/sysctl.conf\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528Vim\u4fee\u6539\u8be5\u6587\u4ef6\uff1a<\/p>\n
[root@centos6 ~]# vim \/etc\/sysctl.conf\r\nnet.ipv4.ip_forward = 1\r\nnet.ipv4.icmp_echo_ignore_all = 1\r\nfs.file-max = 108248<\/pre>\n\u6ce8\u610f\uff1a\u901a\u8fc7sysctl.conf\u6587\u4ef6\u4fee\u6539\u7684\u53c2\u6570\u4e0d\u4f1a\u7acb\u5373\u751f\u6548\uff0c\u9700\u8981\u4f7f\u7528sysctl -p \u547d\u4ee4\u8bbe\u7f6e\u7acb\u5373\u751f\u6548\u3002<\/font><\/p>\n
\u672c\u6587\u539f\u521b\u5730\u5740\uff1ahttp:\/\/gulass.cn\/inux-kernel-modules-introduction.html<\/a>\u4f5c\u8005\uff1a\u51af\u742a\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"
\u5bfc\u8bfb Linux\u5185\u6838\u91c7\u7528\u7684\u662f\u6a21\u5757\u5316\u6280\u672f\uff0c\u8fd9\u6837\u7684\u8bbe\u8ba1\u53ef\u4ee5\u4f7f\u5f97\u7cfb\u7edf\u5185\u6838\u4fdd\u6301\u6700\u5c0f\u5316\uff0c\u540c\u65f6\u786e\u4fdd\u4e86\u5185\u6838\u7684\u53ef\u6269\u5c55\u6027\u548c\u53ef\u7ef4\u62a4 […]<\/p>\n","protected":false},"author":63,"featured_media":11236,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-12634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/12634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=12634"}],"version-history":[{"count":14,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/12634\/revisions"}],"predecessor-version":[{"id":253399,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/12634\/revisions\/253399"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/11236"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=12634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=12634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=12634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}