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£¬½«²»ÏÞÖÆÇëÇóµÄÊýÁ¿¡£ÕâÀィÒé×îºÃ½«´ËÖµÉèΪһ¸ö±È½Ï´óµÄÖµ£¬ÒÔÈ·±£×îÓŵķþ
Ïà¹ØÎĵµ£º
ÒÔÇ°Ôø¾¿´¹ýÕâÑùµÄһƪÎÄÕ£¬´ó¸ÅÊÇÕâÑùµÄ:
ѧϰLinuxÒª·ÖÈý¸ö½×¶ÎÀ´Ñ§£º
1£©Ê¹ÓÃLinux£»
2)LinuxµÄ³ÌÐòÉè¼Æ£»
3£©LinuxµÄÄں˼°±à³Ì¡£
´ÓÏÖÔÚ¿ªÊ¼ÒªÑ§Ï°LinuxÁË£¬Ö÷ÒªÊÇÏÈ´ÓʹÓÃLinux¿ªÊ¼ÁË£¬Ñ¡ÓõÄLinuxÊÇRed Hat 5. ......
±ÈÈç˵Ҫ¿´
http://broadcast.hzcnc.com/player.asp?code=345&pname=%u65e0%u95f4%u9053
$ curl 'http://broadcast.hzcnc.com/Play.aspx?code=345'
<ASX VERSION = "3.0">
<ENTRY>
<REF HREF = &quo ......
¹ØÓÚϵͳµ÷ÓýٳÖ
Èç¹ûÒ»¸öľÂíÒªÒþ²ØÆðÀ´£¬²»±»ÏµÍ³¹ÜÀíÔ±·¢ÏÖ¡£½Ø»ñϵͳµ÷ÓÃËƺõÊDZØÐëµÄ¡£´ó²¿·ÖÇé¿öÏ£¬Í¨¹ýÐÞ¸Äϵͳµ÷ÓñíÀ´ÊµÏÖϵͳµ÷ÓõĽٳ֡£ÏÂÃæÊÇÒ»¸öµäÐ͵Ľػñϵͳµ÷ÓõÄÄ£¿é£º
Ä£¿éÒ»£º
#include
#include
#include
#include
#include
#include
#include
#include
#include
MODULE_LICE ......
At first you have to open a terminal/bash and then enter:
file /path/file.bin
for example file /home/user/file.bin (file is the command)
Now you should see a sentence including the word “executable” and not “non-executable, not executable,… or something completely differ ......
vi /etc/rc.d/rc.local
Ôö¼Ó£º/usr/local/httpd/bin/apachectl start
2£º[×¢²áΪService]
cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
vi httpd
ÕÒµ½£º#!/bin/sh
ÁíÆðÒ»ÐУ¬Ôö¼Ó£º
# chkconfig: 35 70 30
ÆäÖÐËùÔö¼ÓµÄµÚ¶þÐÐÖÐÈý¸öÊý×ÖµÚÒ»¸ö±íʾÔÚÔËÐ춱ð3ºÍ5ÏÂÆô¶¯apache£¬µÚ¶þ¡¢ÈýÊǹØÓÚÆô¶¯ºÍÍ ......