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
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
热门推荐
1 训练狗狗憋尿
2 狗狗追踪训练
3 狗狗训练要多少钱
5 深圳狗狗训练
6 训练狗狗唤回
7 狗狗叫怎么训练
8 狗狗训练班
10 狗狗社会化训练
11 狗狗叫回训练
12 广州狗狗训练学校
13 狗狗训练躺下
14 狗狗随行训练
15 训练狗狗巡回
16 狗狗要怎么训练
17 狗狗喂食训练
18 训练狗狗躺下