炼气期DBA
(Ti D Ber Ic01xw Vm)
1
[root@tidb1 ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv6.conf.all.forwarding = 0
vm.swappiness = 0
fs.file-max = 1000000
net.core.somaxconn = 32768
sysctl: cannot stat /proc/sys/net/ipv4/tcp_tw_recycle: 没有那个文件或目录
请问麒麟系统没有这个tcp_tw_recycle参数,该如何处理?
TiDBer_SSUU
(Ti D Ber Ssu Uw M5d)
2
这个参数在 Linux 4.12 之后已经被彻底移除,和把它设置为0,效果差不多的
独善其身
(Ti D Ber Bi Rqfz5 K)
3
麒麟系统用的内核是4版本以上吗?如果是的话应该是过时了
炼气期DBA
(Ti D Ber Ic01xw Vm)
5
[root@tidb1 ~]# uname -r
4.19.91-24.8.el8.ks8.11.x86_64
那意思是内核4以上版本就不再需要这个参数了吗?
乾坤大挪移
(Ti D Ber A8r Uup Mr)
7
在 麒麟操作系统(Kylin Linux) 或其他较新的 Linux 内核中,如果执行 sysctl -p 出现:
sysctl: cannot stat /proc/sys/net/ipv4/tcp_tw_recycle: No such file or directory
通常原因是:内核已经删除了 tcp_tw_recycle 参数,不是系统缺少,而是 内核版本不再支持。
智慧同学
(Ti D Ber Fje Qun Bf)
10
麒麟系统没有 tcp_tw_recycle 是因为Linux 内核已删除该参数,
删除 sysctl 配置中的该参数即可,不需要额外配置。
1 个赞