net.ipv4.tcp_tw_reuse = 1
开启tcp_tw_reuse
net.ipv4.ip_local_port_range = 50001 50001
node2:/root/test#python connect1.py
response:15
node2:/root/test#python connect1.py
response:15
node2:/root/test#python connect1.py
response:15
node2:/root/test#python connect1.py
response:15
node2:/root/test#python connect1.py
response:15
net.ipv4.tcp_tw_reuse = 1
node2:/root/test#sysctl -w net.ipv4.ip_local_port_range="50001 50001"
net.ipv4.ip_local_port_range = 50001 50001
tcp 0 0 192.168.137.3:50001 192.168.137.2:8080 TIME_WAIT
tcp 0 0 192.168.137.3:50001 192.168.137.2:8080 TIME_WAIT
tcp 0 0 192.168.137.3:50001 192.168.137.2:8080 TIME_WAIT
tcp 0 0 192.168.137.3:50001 192.168.137.2:8080 TIME_WAIT
tcp 0 0 192.168.137.3:50001 192.168.137.2:8080 TIME_WAIT
tcp 0 0 192.168.137.3:50001
转载请注明原文地址:https://ipadbbs.8miu.com/read-9703.html