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

linux¹ÒÔØwindows¹²Ïíºó£¬ÍøÕ¾ÀïµÄͼƬ²»ÄÜÕý³£ÏÔʾ

»·¾³ËµÃ÷
ºô½ÐÖÐÐÄ·þÎñÆ÷
    ϵͳ£ºCentos5
    IP£º192.168.1.146
    httpÍøÕ¾¸úĿ¼/var/www/html/
ÎҵĵçÄÔ
    ϵͳ£ºwindows XP
    IP£º 192.168.4.98
    ¹²ÏíĿ¼£ºD:\bgcrm £¨Ò»¸öphpµÄÍøÕ¾£©
bgcrmµÄÍøÕ¾¿ª·¢µÄʱºò£¬ÎÒÏëÔÚÎҵĵçÄÔÉÏ£¬È»ºóÔÚwindows»úÆ÷ÉÏËüÅܲ»ÆðÀ´£¬ÒòΪËüÐèÒªºô½ÐÖÐÐĵÄÈíÓ²¼þ»·¾³£¬ËùÒÔ£¬ÎÒ´òËãÔÚwindows»úÆ÷ÉϹ²ÏíÕâ¸öÍøÕ¾£¬È»ºóÔÙµ½linux·þÎñÆ÷ÉϹÒÔØÕâ¸ö¹²Ïí¡£
¹ÒÔØ·½·¨ÈçÏÂ
mount.cifs //192.168.4.98/bgcrm/ /var/www/html/tmp/ -o username=staff/zhangtuo,password=mypassword
ÆäÖÐstaffÊÇÎÒwindowsµçÄÔµÄÓò£¬½«bgcrmÍøÕ¾¹ÒÔص½ÁË/var/www/html/tmp Îļþ¼ÐÏ£¬ÕâÀï²»±Ø¶à˵
¹ÒÔØÉÏÈ¥Ö®ºó£¬·¢ÏÖphpÍøÕ¾¿ÉÒÔÅÜÆðÀ´£¬µ«Î©¶ÀÀïÃæµÄͼƬ²»ÄÜÕý³£ÏÔʾ¡£Ö±½Óͨ¹ýµØÖ··ÃÎÊͼƬҲ²»ÐУ¬ÏÔʾµÄ²æÉÕ°ü£¬µã²æÉÕ°üÓÒ¼üÊôÐÔ»ñµÃµÄͼƬµØַȷʵÊÇÕýÈ·µÄhttp://192.168.1.146/tmp/logo.jpg
ÄѵÀÊÇÊý¾Ý¶ÁÈ¡´íÎó£¿
ÓÚÊÇÎÒÊÔ×Å°Ñ/var/www/html/tmp/logo.jpgÎļþ¼ÐϵÄÕâ¸öͼƬÎļþ¿½µ½linuxÁíÍâÒ»¸ö±¾µØĿ¼ÖС£/var/www/html/bugfree/logo.jpg £¬È»ºóͨ¹ýеÄURL·ÃÎÊ http://192.168.1.146/bugfree/logo.jpg   
ÉñÆæµÄÊÂÇé³öÏÖÁË£¬Í¼Æ¬Äܹ»Õý³£ÏÔʾ¡£
ÓÚÊÇÎÒ³õ²½µÃ³ö½áÂÛ
1£ºmountºó£¬linuxÄÜÕý³£¶ÁÈ¡windows¹²ÏíÎļþµÄÊý¾Ý¡£
2£ºÊÇapacheÔÚµ·¹í
ÓÚÊÇgoogleÒ»ÏÂ
ÕÕÍøÉÏ˵µÄ£¬°ÑEnableSendfile¹Ø±Õ
¼´ÐÞ¸Ähttpd.conf Îļþ£¬°Ñ
#EnableSendfile OffÇ°ÃæµÄ×¢ÊÍÈ¥µô£¬È»ºóÖØÆôhttpd
ÎÊÌâ¾Í½â¾öÁË
ÒýÓÃÕâ¸çÃǵÄÎÄÕ£¬ÈçÏÂ
¾­¹ýÊÔÑ飬ÓëÄÚºËÎ޹أ¬ÄÚºËÊÇûÓÐÎÊÌâµÄ.
ÕæÕýµÄÔ­ÒòÊÇapache»òvsftpd·¢²¼µÄÎļþĿ¼ÖÐÈç¹ûÓÐmount.cifs¹ÒÔØÉÏÀ´µÄ£¬¾ÍÐèÒªÔÚapache»òvsftpd°ÑsendfileÑ¡Ïî¹Ø±Õ¡£
ÔÚapacheµÄÎĵµÖÐÕâÑùдµÀ£º
[quote]
EnableSendfile Õâ¸öÖ¸Áî¿ØÖÆhttpdÊÇ·ñ¿ÉÒÔʹÓòÙ×÷ϵͳÄں˵ÄsendfileÖ§³ÖÀ´½«Îļþ·¢Ë͵½¿Í»§¶Ë¡£Ä¬ÈÏÇé¿öÏ£¬µ±´¦ÀíÒ»¸öÇëÇó²¢²»ÐèÒª·ÃÎÊÎļþÄÚ²¿µÄÊý¾Ýʱ(±ÈÈç·¢ËÍÒ»¸ö¾²Ì¬µÄÎļþÄÚÈÝ)£¬Èç¹û²Ù×÷ϵͳ֧³Ö£¬Apache½«Ê¹ÓÃsendfile½«ÎļþÄÚÈÝÖ±½Ó·¢Ë͵½¿Í»§¶Ë¶ø²¢²»¶ÁÈ¡Îļþ¡£ÒëÕß×¢£ºLinux2.4/2.6Äں˶¼Ö§³Ö¡£
Õâ¸ösendfile»úÖƱÜÃâÁË·Ö¿ªµÄ¶ÁºÍд²Ù×÷ÒÔ¼°»º³åÇø·ÖÅ䣬µ«ÊÇÔÚһЩƽ̨»òÕßһЩÎļþϵͳÉÏ£¬×îºÃ½ûÖ¹Õâ¸öÌØÐÔÀ´±ÜÃâһЩÎÊÌ⣺
* һЩÆ


Ïà¹ØÎĵµ£º

תÌû ¸ºÔؾùºâ ÔÚwindowÓëlinuxÏÂÅäÖÃnginx


×î½üÓÐЩʱ¼ä£¬¿ªÊ¼½Ó´¥¸ºÔؾùºâ·½ÃæµÄ¶«Î÷£¬´ÓÓ²¼þF5ÔÙµ½Citrix Netscalar¡£²»¹ýÒòΪӲ¼þµÄÅäÖÃËäÈ»²»¸´ÔÓ£¬µ«°º¹óµÄ¼Û¸ñÒ²ÈÃÒ»°ãÓû§Íû¶øÈ´²½(Ê®¼¸Íòµ½¼¸Ê®Íò)£¬ËùÒÔÖ»ÄÜתÏònginx,squidÕâÀàÓз´Ïò´úÀí¹¦ÄܵÄÈí¼þÁË¡£ºÃÔÚÆäÉèÖö¼²»ÊǺÜÂé·³¡£
      ±¾ÎľÍ֮ǰËù×ö¹ýµÄ°²×°ºÍÅäÖò½Öè×öÒ»Ï ......

Linux³§É̵Ŀ¬Ä££¨ÏÈÐÐÕߣ©






<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
A:link { so-language: zxx }
-->
        Ëùν“¿¬Ä£”£¨
Model
£©¾ÍÊÇ°ñÑùµÄÒâ˼¡£ÄÇô£¬Ë­ÊÇ
Linux
³§ÉÌ£¨¹«ÈÏ£©µÄ°ñÑùÄØ£¿ÄãÏëÖªµÀÂð£¿
 
     ......

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


### Section 1: Global Environment
//µ±·þÎñÆ÷ÏìÓ¦Ö÷»úÍ·£¨header£©ÐÅϢʱÏÔʾApacheµÄ°æ±¾ºÍ²Ù×÷ϵͳÃû³Æ
ServerTokens OS
//ÉèÖ÷þÎñÆ÷µÄ¸ùĿ¼
ServerRoot "/etc/httpd"
#ScoreBoardFile run/httpd.scoreboard
//ÉèÖÃÔËÐÐApacheʱʹÓõÄPidFileµÄ·¾¶
PidFile run/httpd.pid
//Èô300ÃëºóûÓÐÊÕµ½»òËͳöÈκÎÊ ......

Linux¸÷¸öÎļþ¼ÐµÄÖ÷Òª×÷ÓÃ

linuxϵÄÎļþ½á¹¹£¬¿´¿´Ã¿¸öÎļþ¼Ð¶¼ÊǸÉÂðÓõÄ
/bin ¶þ½øÖÆ¿ÉÖ´ÐÐÃüÁî
/dev É豸ÌØÊâÎļþ
/etc ϵͳ¹ÜÀíºÍÅäÖÃÎļþ
/etc/rc.d Æô¶¯µÄÅäÖÃÎļþºÍ½Å±¾
/home Óû§Ö÷Ŀ¼µÄ»ùµã£¬±ÈÈçÓû§userµÄÖ÷Ŀ¼¾ÍÊÇ/home/user£¬¿ÉÒÔÓÃ~user±íʾ
/lib ±ê×¼³ÌÐòÉè¼Æ¿â£¬Óֽж¯Ì¬Á´½Ó¹²Ïí¿â£¬×÷ÓÃÀàËÆwindowsÀïµÄ.dllÎļþ
/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ