linux服务器参数

1.ulimit -SHn 51200

2.修改/etc/sysctl.conf

net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.ip_local_port_range = 5000    65000

使配置立即生效

/sbin/sysctl -p

3.

通过 ulimit 改善系统性能

http://blog.s135.com/

猜你喜欢

转载自simplehappy.iteye.com/blog/901021