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

LinuxÏÂApache ÅäÖÃÎļþÏê½â


### Section 1: Global Environment
//µ±·þÎñÆ÷ÏìÓ¦Ö÷»úÍ·£¨header£©ÐÅϢʱÏÔʾApacheµÄ°æ±¾ºÍ²Ù×÷ϵͳÃû³Æ
ServerTokens OS
//ÉèÖ÷þÎñÆ÷µÄ¸ùĿ¼
ServerRoot "/etc/httpd"
#ScoreBoardFile run/httpd.scoreboard
//ÉèÖÃÔËÐÐApacheʱʹÓõÄPidFileµÄ·¾¶
PidFile run/httpd.pid
//Èô300ÃëºóûÓÐÊÕµ½»òËͳöÈκÎÊý¾Ý¾ÍÇжϸÃÁ¬½Ó
Timeout 300
//²»Ê¹Óñ£³ÖÁ¬½ÓµÄ¹¦ÄÜ£¬¼´¿Í»§Ò»´ÎÇëÇóÁ¬½ÓÖ»ÄÜÏìÓ¦Ò»¸öÎļþ
/½¨ÒéÓû§½«´Ë²ÎÊýµÄÖµÉèÖÃΪOn£¬¼´ÔÊÐíʹÓñ£³ÖÁ¬½ÓµÄ¹¦ÄÜ
KeepAlive Off
//ÔÚʹÓñ£³ÖÁ¬½Ó¹¦ÄÜʱ£¬ÉèÖÿͻ§Ò»´ÎÇëÇóÁ¬½ÓÄÜÏìÓ¦ÎļþµÄ×î´óÉÏÏÞ
MaxKeepAliveRequests 100
//ÔÚʹÓñ£³ÖÁ¬½Ó¹¦ÄÜʱ£¬Á½¸öÏàÁÚµÄÁ¬½ÓµÄʱ¼ä¼ä¸ô³¬¹ý15Ã룬¾ÍÇжÏÁ¬½Ó
KeepAliveTimeout 15
##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
//ÉèÖÃʹÓÃPrefork MPMÔËÐз½Ê½µÄ²ÎÊý£¬´ËÔËÐз½Ê½ÊÇRed hatĬÈϵķ½Ê½
<IfModule prefork.c>
//ÉèÖ÷þÎñÆ÷Æô¶¯Ê±ÔËÐеĽø³ÌÊý
StartServers 8
//ApacheÔÚÔËÐÐʱ»á¸ù¾Ý¸ºÔصÄÇáÖØ×Ô¶¯µ÷Õû¿ÕÏÐ×Ó½ø³ÌµÄÊýÄ¿
//Èô´æÔÚµÍÓÚ5¸ö¿ÕÏÐ×Ó½ø³Ì£¬¾Í´´½¨Ò»¸öеÄ×Ó½ø³Ì×¼±¸Îª¿Í»§Ìṩ·þÎñ
MinSpareServers 5
//Èô´æÔÚ¸ßÓÚ20¸ö¿ÕÏÐ×Ó½ø³Ì£¬¾Í´´½¨Öðһɾ³ý×Ó½ø³ÌÀ´Ìá¸ßϵͳÐÔÄÜ
MaxSpareServers 20
//ÏÞÖÆÍ¬Ò»Ê±¼äµÄÁ¬½ÓÊý²»Äܳ¬¹ý150
MaxClients 150
//ÏÞÖÆÃ¿¸ö×Ó½ø³ÌÔÚ½áÊø´¦ÀíÇëÇó֮ǰÄÜ´¦ÀíµÄÁ¬½ÓÇëÇóΪ1000
MaxRequestsPerChild 1000
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
//ÉèÖÃʹÓÃWorker MPMÔËÐз½Ê½µÄ²ÎÊý
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
# perchild MPM
# NumServers: constant number of server processes
//ÉèÖÃʹÓÃperchild MPMÔËÐз½Ê½µÄ²ÎÊý
<IfModule perchild.c>
NumS


Ïà¹ØÎĵµ£º

SBC2440Ñз¢°åϵÄLINUXµÄ°²×°

SBC2440Ñз¢°åϵÄLINUXµÄ°²×°
±¾ÎļþÊǶԓSBC2440ϵͳ°²×°ºÍ¸üÐÂÖ¸ÄÏ.pdf£¨ÔÚÑз¢°å¸½Ë͵ĹâÅÌϾÍÄÜÕÒµ½£©”µÄ²¹³ä˵Ã÷£¨ºìÉ«×ÖÌ岿·Ö£©¡£
Ê×ÏȽøÈëVIVIģʽ£º·½·¨ÊÇÏÈ´ò¿ªWINDOWSϵÄÖÕ¼«ÖÕ¶Ë£¬ÉèÖúø÷ÖÖ²ÎÊý£¨¾ßÌåÉèÖüû“SBC2440Ö®³õÌåÑé.pdf£¨ÔÚÑз¢°å¸½Ë͵ĹâÅÌϾÍÄÜÕÒµ½£©”£¬Ê¹COM1´¦ÔÚ× ......

Linux 2.6 ×Ö·ûÉ豸Çý¶¯³ÌÐò

˵Ã÷
±Ê¼ÇÊÊÓÃÓÚLinuxµÄ2.6.10ÒÔºóµÄÄںˡ£
±Ê¼ÇÒÔLinux
Device
Driver3ÌṩµÄscull³ÌÐò(scullĿ¼ÖеÄmain.cºÍscull.h)Ϊ¼Ç¼Ö÷Ïߣ¬²¢ÒÔ¸ÃÇý¶¯³ÌÐòÖеĸ÷ÖÖϵͳµ÷Óúͺ¯Êýµ÷ÓÃÁ÷³ÌΪ¼Ç
¼˳Ðò¡£±ÈÈ磬module_init( )ºÍmodule_exit(
)ΪÏà¶ÔÓ¦µÄÒ»¶Ôϵͳµ÷Óã¬Ò»°ãÊé¼®Öж¼»á·ÅÔÚÒ»ÆðÌÖÂÛ£¬µ«ÊDZ¾±Ê¼ÇÈ´²»»áÕâÑù£¬¶øÊ ......

linuxÉÏcÓïÑÔ »ñµÃÍøÂç½Ó¿ÚµÄͳ¼ÆÖµ

Õâ¸ö¶«¶«£¬ÂùºÃÍæµÄ¡£Æäʵ¾ÍÊǶÁÈ¡ÁË/proc/net/dev Îļþ¡£
struct netdev_stats {
    unsigned long long rx_packets_m;    /* total packets received       */
    unsigned long long tx_packets_m;     &nbs ......

ѧ×öǶÈëʽLinuxϵͳ£¨×ª£©


ѧ×öǶÈëʽLinuxϵͳ£¨×ª£©
 
 
ת×Ô£ºhttp://www.dzkf.cn/html/qianrushixitong/2006/0731/120.html
×öÒ»¸öǶÈëʽLinuxϵͳ¾¿¾¹Òª×öÄÄЩ¹¤×÷
×öÒ»¸öǶÈëʽLinuxϵͳ¾¿¾¹ÐèÒª×öÄÄЩ¹¤×÷£¿Ò²¾ÍÊDZ¾Îľ¿¾¹Òª½²ÊöÄÄЩÄÚÈÝ£¿ÎÒÏȽéÉÜÒ»¸öÂöÂ磬¿ÉÒÔ×öΪÎÒÃǺóÃæ¹¤×÷µÄÒ»¸ö×ܵÄÌá¸Ù£º
µÚÒ»²½¡¢½¨Á¢½»²æ±àÒë»·¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ