From 2f92450e395c9068137ec463d532ed7b48ab7af0 Mon Sep 17 00:00:00 2001 From: kairee Date: Thu, 26 May 2022 02:28:59 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'etc/sysctl.conf'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/sysctl.conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/etc/sysctl.conf b/etc/sysctl.conf index c3ec241..d65ce26 100644 --- a/etc/sysctl.conf +++ b/etc/sysctl.conf @@ -1,4 +1,8 @@ +kernel.sysrq = 1 +kernel.printk = 5 vm.swappiness = 10 +vm.overcommit_memory=1 + fs.file-max = 51200 net.core.rmem_max = 67108864 net.core.wmem_max = 67108864 @@ -21,4 +25,8 @@ net.ipv4.tcp_mtu_probing = 1 net.ipv4.tcp_ecn = 1 net.ipv4.tcp_ecn_fallback = 1 net.core.default_qdisc = fq -net.ipv4.tcp_congestion_control = bbr \ No newline at end of file +net.ipv4.tcp_congestion_control = bbr +net.ipv4.ip_forward = 1 + +net.ipv6.conf.default.autoconf = 0 +net.ipv6.conf.all.autoconf = 0 \ No newline at end of file