Home / cs-notes / Network / Protocol / TCP / Problems / 心跳 / TCP KeepAlive / linux global config
- /etc/sysctl.conf
net.ipv4.tcp_keepalive_intvl = 20 # 探测间隔(秒)
net.ipv4.tcp_keepalive_probes = 3 # 探测尝试次数
net.ipv4.tcp_keepalive_time = 60 # Idle (秒)
Home / cs-notes / Network / Protocol / TCP / Problems / 心跳 / TCP KeepAlive / linux global config
net.ipv4.tcp_keepalive_intvl = 20 # 探测间隔(秒)
net.ipv4.tcp_keepalive_probes = 3 # 探测尝试次数
net.ipv4.tcp_keepalive_time = 60 # Idle (秒)