tilg 发表于 2013-9-12 08:57:17

五、优化Linux内核参数【LNMP安装 】

vi /etc/sysctl.conf

  在末尾增加以下内容:
引用
# Add
net.ipv4.tcp_max_syn_backlog = 65536
net.core.netdev_max_backlog =32768
net.core.somaxconn = 32768

net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216

net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 2

net.ipv4.tcp_tw_recycle = 1
#net.ipv4.tcp_tw_len = 1
net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_mem = 94500000 915000000 927000000
net.ipv4.tcp_max_orphans = 3276800

#net.ipv4.tcp_fin_timeout = 30
#net.ipv4.tcp_keepalive_time = 120
net.ipv4.ip_local_port_range = 102465535


  使配置立即生效:
/sbin/sysctl -p

FXMAR 发表于 2013-11-28 06:25:00

算命的说.我是一个心高气傲的女人.注定是悲剧的女人.

aa0660 发表于 2013-11-30 21:28:20

就算我付出的在多我得到的却是无尽的伤害。

shenyg 发表于 2013-12-4 04:43:52

一 个 人 享 受 寂 寞 、 也 是 种 别 致 的 < 美 ヽ

gaofeng0210 发表于 2013-12-6 21:07:47

有竞争才有进步嘛

pgup12 发表于 2013-12-9 11:49:29

!.当今社会的傻子不是说智商有多低 ., 而是人有多善良

(^o^)/~完美 发表于 2013-12-11 20:10:49

是你教会我如何去爱你,可你就要离开了
页: [1]
查看完整版本: 五、优化Linux内核参数【LNMP安装 】