linux服务器优化

linux服务器优化

①、/etc/sysctl.conf  文件
kernel.shmall = 4294967296
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_timestamps=0
net.ipv4.ip_local_port_range = 1024 65000

②、/etc/security/limits.conf
*               soft    nofile          100000
*               hard    nofile          100000



http://blog.csdn.net/lastsweetop/article/details/6400328

猜你喜欢

转载自80082828.iteye.com/blog/2179619