日期:2014-05-16 浏览次数:20834 次
ulimit -n 65535
$: source /etc/profle $:ulimit -n #显示65535,修改完毕!
$: soft nofile 65535 $: hard nofile 65535
$:net.ipv4.tcp_tw_reuse = 1 #表示开启重用。允许将TIME-WAIT sockets重新用于新的TCP连接,默认为0,表示关闭; $:net.ipv4.tcp_tw_recycle = 1 #recyse是加速TIME-WAIT sockets回收 $:net.ipv4.tcp_fin_timeout = 30 #fin_wait1状态是在发起端主动要求关闭tcp连接,并且主动发送fin以后,等待接收端回复ack时候的状态 $:net.ipv4.tcp_keepalive_time = 1200 $:net.ipv4.tcp_keepalive_probes = 3 $:net.ipv4.tcp_keepalive_intvl = 15