【系统级配置】/etc/sysctl.conf

vm.swappiness=0
net.core.somaxconn=1024
net.ipv4.tcp_max_tw_buckets=5000
#net.ipv4.tcp_max_syn_backlog=1024

net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
#net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 0

posted @ 2019-12-27 11:01  阿里云的奥斯卡  阅读(227)  评论(0编辑  收藏  举报