linuxÖÐapacheÅäÖÃ
Ò»¡¢
±³¾°
1
£®Ê²Ã´ÊÇ
Apache
£¿
Apache£¬ÊÇÒ»ÖÖ¿ª·ÅÔ´ÂëµÄ
HTTP·þÎñÆ÷£¬¿ÉÒÔÔÚ´ó¶àÊý²Ù×÷ϵͳÖÐÔËÐУ¬ÓÉÓÚÆä¶àƽ̨ºÍ°²È«ÐÔËùÒÔ±»¹ã·ºÊ¹Óã¬ÊÇÄ¿Ç°×îÁ÷ÐеÄ
Web·þÎñÆ÷Èí¼þÖ®Ò»¡£
Apache Æð³õÓÉ
Illinois ´óѧ
Urbana-Champaign µÄ¹ú¼Ò¸ß¼¶¼ÆËã³ÌÐòÖÐÐÄ¿ª·¢£¬¿ªÊ¼
ApacheÖ»ÊÇ×÷Ϊ
NetscapeÍøÒ³·þÎñÆ÷Ö®ÍâµÄÑ¡Ôñ¡£½¥½¥µÄ£¬Ëü¿ªÊ¼ÔÚ¹¦ÄܺÍËÙ¶ÈÉϳ¬Ô½ÆäËü»ùÓÚ
UnixµÄ
HTTP·þÎñÆ÷¡£´Ó
1996Äê
4ÔÂÒÔÀ´£¬
ApacheÒ»Ö±ÊÇ
InternetÉÏ×îÁ÷ÐеÄ
HTTP·þÎñÆ÷
: 1999Äê
5ÔÂËüÔÚ
57% µÄÍøÒ³·þÎñÆ÷ÉÏÔËÐУ»¶øµ½ÁË
2005Äê
7ÔÂÕâ¸ö±ÈÀýÉÏÉýµ½ÁË
69%¡£
ApacheÃû³ÆµÄÓÉÀ´ÊÇΪÁ˼ÍÄîÃÀÖÞÓ¡µÚ°²ÈËÍÁÖøÖеÄÒ»Ö§£¬ÒòΪÕâÖ§ÍÁÖøÓµÓÐ×î¸ß³¬µÄ×÷Õ½²ßÂÔºÍÎÞÇîµÄÄÍÐÔ¡£
2.
ʲôÊÇ
Apache HTTP Server
£¿
Apache HTTP Server(
Ò²±»³ÆΪ
Apache httpd)
ÊÇ
Apache
Èí¼þ»ù½ð»á´´½¨µÄÒ»¸ö½¡×³µÄ¡¢¹¤Òµ¼¶µÄ¡¢¹¦ÄÜÇ¿´óµÄ¡¢¿ª·ÅÔ´´úÂëµÄ
HTTP(Web)
·þÎñÆ÷¡£
¶þ¡¢
httpd.conf
Öг£ÓòÎÊý½éÉÜ
1£®
Á¬½ÓÀà²ÎÊý
l
TimeOut
·þÎñÆ÷Ôڶ϶¨ÇëÇóʧ°ÜÇ°µÈ´ýµÄʱ¼ä
,¼´
½ÓÊպͷ¢ËÍÊý¾ÝµÄ³¬Ê±Ê±¼ä¡£
¡¾ËµÃ÷¡¿
TimeOut²ÎÊýÓÃÓÚÉèÖÃ
ApacheÔڵȴýÒÔÏÂÈýÖÖʼþµÄʱ¼ä£º
u
½ÓÊÜÒ»¸ö
GETÇëÇóºÄ·ÑµÄ×Üʱ¼ä¡£
u
POST»ò
PUTÇëÇóʱ£¬½ÓÊÜÁ½¸ö
TCP°üÖ®¼äµÄʱ¼ä¡£
u
»ØӦʱ
TCP°ü´«ÊäÖÐÁ½¸ö
ACK°üÖ®¼äµÄʱ¼ä¡£
»¹¿ÉÒÔÀí½â³É
ApacheÔÊÐíÿ´Îͨ¹ý
HTTPÐÒé´«ÊäÊý¾ÝµÄ×î´óʱ¼ä¡£
l
KeppAlive
ÆôÓÃ
HTTP³ÖÐø×÷Óá£
¡¾ËµÃ÷¡¿
³ÖÐø×÷ÓÃÀ©Õ¹×Ô
HTTP/1.0ºÍ
HTTP/1.1µÄ³¤Á¬½ÓÌØÐÔ¡£ÌṩÁ˳¤Ð§µÄ
HTTP»á»°£¬ÓÃÒÔÔÚͬһ¸ö
TCPÁ¬½ÓÖнøÐжà´ÎÇëÇó¡£ÔÚijЩÇé¿öÏ£¬ÕâÑùµÄ·½Ê½»á¶Ô°üº¬´óÁ¿Í¼Æ¬µÄ
HTMLÎļþÆðµ½
50%µÄ¼ÓËÙ×÷Ó᣶ÔÓÚʹÓÃ
HTTP/1.0µÄ¿Í»§¶ËÀ´Ëµ£¬Ö»Óпͻ§¶ËÉèÖÃʹÓõÄʱºò²Å»áʹÓóÖÐø×÷ÓÃÁ¬½Ó¡£¶ø¶ÔÓÚ
HTTP/1.1µÄ¿Í»§¶ËÀ´Ëµ£¬Èç¹ûûÓнøÐÐÌØÊâÖ¸¶¨£¬³¤Á¬½Ó½«ÊÇĬÈϵÄÁ¬½Ó·½Ê½¡£
l
MaxKeppAliveRequests
Ò»¸ö³¤Á¬½ÓÖÐÔÊÐíµÄÇëÇóÊýÁ¿¡£
¡¾ËµÃ÷¡¿
¸Ã²ÎÊýÏÞÖÆÁ˵±ÆôÓÃ
KeepAlive
ʱ£¬Ã¿´ÎÁ¬½ÓÔÊÐíµÄÇëÇóÊýÁ¿¡£Èç¹û½«´ËÖµÉèΪ
0£¬½«²»ÏÞÖÆÇëÇóµÄÊýÁ¿¡£ÕâÀィÒé×îºÃ½«´ËÖµÉèΪһ¸ö±È½Ï´óµÄÖµ£¬ÒÔÈ·±£×îÓŵķþ
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
ÍøÉÏÓкܶàµÄ·½·¨£¬¹ØÓÚÍü¼ÇlinuxµÇ¼ÃÜÂëÖ®ºóÓ¦¸ÃÔõô°ì¡£ÓÐÎåÖÖ·½·¨£¬¶¼ºÜºÃ¡£
±¾ÈËÒÔΪÓÃgrubÒýµ¼µÄÄÇÖÖ×îʵÓ㬺Ǻǣ¡ÊÔÁËһϣ¬¹ûÈ»¿ÉÒÔ£¡£¡
grubÒýµ¼
1. ÔÚ³öÏÖgrub»Ãæʱ£¬Ñ¡ÔñlinuxÒýµ¼ÏȻºó°´e¼ü
2. Ñ¡ÔñÒÔkernel¿ªÍ·µÄÒ»ÐУ¬ÔÙ°´e ¼ü£¬ÔÚ´ËÐеÄĩ⣬°´¿Õ¸ñ¼üºóÊäÈësingle£¬ÒԻسµ¼üÀ´Í˳ö±à¼Ä£Ê½£» ......
yum-protectbaseÔÚCentOS 5°ü²Ö¿âÀïÃæÓÐÌṩ:
#yum install yum-protectbase
ÔÚCentOS 5ÀïÃæÕâ¸ö²å¼þĬÈÏÆô¶¯ .
±à¼/etc/yum.repos.d/CentOS-Base.repo ,
ÔÚ [base]
¡¢[update]
¡¢[centosplus]
¶ÎÄ©¼ÓÉÏÒ»ÐÐ:
protect=1
Èà [centosplus] ¶ÎʧЧÈçÏÂ:
enabled=0
±à¼/etc/yum.repos.d/CentOS-Base.repo £¬
Ô ......
Ò»¡¢LINUXÎļþ½á¹¹ ¢ÙÎļþ
Ϊ²Ù×÷ϵͳ·þÎñ¡¢É豸·ÃÎÊÌṩÁ˼òµ¥¶øͳһµÄ½Ó¿Ú¡£ÎļþÊý¾Ý½á¹¹°üÀ¨ÎļþÃû×Ö¡¢´´½¨ÈÕÆÚ¡¢·ÃÎÊȨ¡¢Îļþ³¤¶ÈµÈ£¬ÕâЩÊý¾Ý¶¼±£´æÔÚÎÒÃdzÆ֮Ϊ ½Úµã ÖС£
¢ÚÉ豸
Ó²¼þÔÚLINUX/UNIXÖÐͨ³£ÊDZ»Ó³Éä³ÉÎļþµÄ£¬ÕâÔÚǶÈëʽµ±ÖÐÊÇÊ®·ÖÖØÒªµÄ¡£
¼¸¸öÖØÒªµÄÉè± ......
ѧϰLinux¶à½ø³Ì±à³Ì
Ò»¡¢½ø³ÌµÄ¶¨Ò壺³ÌÐòÖ´ÐкÍ×ÊÔ´¹ÜÀíµÄ×îСµ¥Î»¡£
¶þ¡¢½ø³Ì¿ØÖÆ£º
£¨1£©½ø³Ì±êʶ£º ½ø³Ì±êʶ ×Ó½ø³ÌºÅ ¸¸½ø³ÌºÅ
Í·Îļþ #include<unistd.h> #include<unistd.h>
º¯Êý¹¦ÄÜ È¡µÃµ±Ç°½ø³ÌµÄ½ø³ÌºÅ È¡µÃµ±Ç°½ø³ÌµÄ¸¸½ø³ÌºÅ
º¯ ......