Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÄں˲ÎÊýµ÷ÓÅ

1. ²é¿´socket״̬
server1:~ # netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
TIME_WAIT 257
CLOSE_WAIT 117
FIN_WAIT2 2
ESTABLISHED 228
2. #vi /etc/sysctl.conf
3. Ôö¼Ó
   net.ipv4.tcp_keepalive_time = 120
   net.ipv4.tcp_keepalive_probes = 2
   net.ipv4.tcp_keepalive_intvl = 75
   net.ipv4.tcp_syncookies = 1
   net.ipv4.tcp_tw_reuse = 1
   net.ipv4.tcp_tw_recycle = 1
   net.ipv4.tcp_fin_timeout = 30
   net.ipv4.ip_local_port_range = 1024 65000
4. ±£´æ£¬Ö´ÐÐ#sysctl –pÉúЧ


Ïà¹ØÎĵµ£º

LinuxϵÄCPUÀûÓÃÂʼÆËãÔ­ÀíÏê½â

   ÎÒÃÇÔÚ¸ãÐÔÄܲâÊÔµÄʱºò£¬¶Ôºǫ́·þÎñÆ÷µÄCPUÀûÓÃÂÊ¼à¿ØÊÇÒ»¸ö³£ÓõÄÊֶΡ£·þÎñÆ÷µÄCPUÀûÓÃÂʸߣ¬Ôò±íÃ÷·þÎñÆ÷ºÜ·±Ã¦¡£Èç¹ûǰ̨ÏìӦʱ¼äÔ½À´Ô½´ó£¬¶øºǫ́CPUÀûÓÃÂÊʼÖÕÉϲ»È¥£¬ËµÃ÷ÔÚij¸öµØ·½ÓÐÆ¿¾±ÁË£¬ÏµÍ³ÐèÒªµ÷ÓÅ¡£Õâ¸öÊǼ´Ê¹²»¶®¼¼ÊõµÄÈ˶¼ÈÝÒ×Àí½âµÄÊÂÇé¡£
   ÉÏÃæÀí½â¶ÔÂð£¿ÎÒ¸öÈ˾õµÃ²»Ê®·Ö× ......

linuxÄÚºËÄ£¿éÖв¶»ñÖжϵÄÒ»¸öÀý×Ó

Ö±½ÓÉÏÀý×Ó°É¡£Ö»ÊDz¶»ñij¸öÉ豸µÄÖж϶øÒÑ¡£¡£¡£
¸ÃÎļþµÄÃû×ÖÊÇirq.c
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#define DEBUG
#ifdef DEBUG
#define MSG(message, args...) printk( ......

LinuxÏÂÅäÖÃNAT·þÎñÆ÷¹²ÏíÉÏÍø


            << LinuxÏÂÅäÖÃNAT·þÎñÆ÷¹²ÏíÉÏÍø >>
content:
    0. ±¾´ÎÅäÖõÄÍøÂçµÄÍØÆË½á¹¹:
    1. ÅäÖÃIPµØÖ·
    .   1.1 ÕýÈ·ÅäÖÃѧУ·ÖÅäµÄIPÊ¹Ä ......

Linux iptables·À»ðǽ¹¹½¨Ê¾Àý

#!/bin/sh
/sbin/modprobe ip_conntrack_ftp
CONNECTION_TRACKING="1"
ACCEPT_AUTH="0"
DHCP_CLIENT="0"
IPT="/sbin/iptables" # Location of iptables on your system
INTERNET="eth0" # Internet-connected interface
LO ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ