linux sysctl参数配置详细介绍
linuxsysctl参数配置
步骤及实现:
sudovi/etc/sysctl.conf
代码:
#KernelsysctlconfigurationfileforRedHatLinux # #Forbinaryvalues,0isdisabled,1isenabled.Seesysctl(8)and #sysctl.conf(5)formoredetails. #ControlstheSystemRequestdebuggingfunctionalityofthekernel kernel.sysrq=1 #ControlswhethercoredumpswillappendthePIDtothecorefilename #Usefulfordebuggingmulti-threadedapplications kernel.core_uses_pid=1 #Controlsthemaximumsizeofamessage,inbytes kernel.msgmnb=65536 #Controlsthedefaultmaxmimumsizeofamesagequeue kernel.msgmax=65536 #Controlsthemaximumsharedsegmentsize,inbytes kernel.shmmax=68719476736 #Controlsthemaximumnumberofsharedmemorysegments,inpages kernel.shmall=4294967296 #ControlsIPpacketforwarding net.ipv4.ip_forward=0 #Controlssourcerouteverification net.ipv4.conf.default.rp_filter=1 #Donotacceptsourcerouting net.ipv4.conf.default.accept_source_route=0 #ControlstheuseofTCPsyncookies net.ipv4.tcp_syncookies=1 net.core.somaxconn=10240 net.ipv4.tcp_tw_reuse=1 net.ipv4.tcp_tw_recycle=1 net.ipv4.tcp_fin_timeout=30 net.ipv4.tcp_keepalive_time=300 net.ipv4.tcp_synack_retries=3 net.ipv4.tcp_syn_retries=3 net.core.rmem_max=16777216 net.core.wmem_max=16777216 net.ipv4.tcp_rmem=40968738016777216 net.ipv4.tcp_wmem=40966553616777216 net.ipv4.tcp_no_metrics_save=0 net.core.netdev_max_backlog=2500 net.ipv4.tcp_max_syn_backlog=4196 net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.default.disable_ipv6=1 xen.independent_wallclock=1
重启,使修改生效
sudosysctl-p
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
热门推荐
10 八一幼儿祝福语大全简短
11 公司乔迁食堂祝福语简短
12 婚礼结束聚餐祝福语简短
13 儿媳买车妈妈祝福语简短
14 毕业送礼老师祝福语简短
15 同事辞职正常祝福语简短
16 恭贺新婚文案祝福语简短
17 金店立秋祝福语简短英文
18 婆婆高寿祝福语大全简短