increaseLinuxUdpRmem.sh 205 B

12345678
  1. #!/bin/bash
  2. rmemCount=`cat /etc/sysctl.conf|grep "net.core.rmem_max" | wc -l`
  3. if [ ${rmemCount} -eq 0 ]
  4. then
  5. echo "net.core.rmem_max = 2147483647" >> /etc/sysctl.conf
  6. sysctl -p
  7. echo "finish"
  8. fi