inux | net.ipv4.ip_local_port_range | 2048 65000 | 다음 매개변수로 /etc/sysctl.conf 를 편집하고 파일을 저장한다. 다음 명령을 실행한다. – sysctl –p |
net.core.rmem_default | 262144 | ||
net.core.wmem_default | 262144 | ||
net.core.wmem_max | 33554432 | ||
net.core.rmem_max | 33554432 | ||
net.core.netdev_max_backlog | 5000 | ||
net.ipv4.tcp_no_metrics_save | 1 | ||
net.ipv4.tcp_rmem | 4096 16777216 33554432 | ||
net.ipv4.tcp_wmem | 4096 16777216 33554432 | ||
net.core.optmem_max | 40960 |
vi /etc/sysctl.conf
fs.file-max = 65535
net.core.rmem_default = 262144
net.core.rmem_max = 33554432
net.core.wmem_default = 262144
net.core.wmem_max = 33554432
net.ipv4.tcp_rmem = 4096 16777216 33554432
net.ipv4.tcp_wmem = 4096 16777216 33554432
net.ipv4.tcp_mem = 33554432 33554432 33554432
net.ipv4.tcp_low_latency = 1
net.core.netdev_max_backlog = 5000
net.ipv4.ip_local_port_range = 2048 65000
net.ipv4.tcp_max_syn_backlog = 16384
net.core.optmem_max = 40960
sysctl -p