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

linux httpd.confÎļþÅäÖÃÏê½â

httpd.confÎļþÅäÖÃÏê½â
ApacheµÄ»ù±¾ÉèÖÃÖ÷Òª½»ÓÉhttpd.confÀ´É趨¹ÜÀí£¬ÎÒÃÇÒªÐÞ¸ÄApacheµÄÏà¹ØÉ趨£¬Ö÷Òª»¹ÊÇͨ¹ýÐÞ¸Ähttpd.congÀ´ÊµÏÖ¡£ÏÂÃæÈÃÎÒÃÇÀ´¿´¿´httpd.confµÄÄÚÈÝ£¬ËüÖ÷Òª·Ö³É3´ó²¿·Ö£º
Section 1:Global Environment
Section 2:'Main' server configuration
Section 3:Virtual Hosts
¡¾µÚÒ»²¿·Ö¡¿
·ServerType standalone
Õâ±íʾApacheÊÇÒÔstandaloneÆô¶¯£¬Ò²¿ÉÒÔÊÇinetd¡£ËùνstandaloneÊÇÖ¸Æô¶¯Ò»´ÎÀ´½ÓÌýËùÓеÄÁ¬Ïߣ»¶øinetdÊǽӵ½httpµÄÁ¬ÏßÒªÇó²ÅÆô¶¯£¬Ëæ×ÅÁ¬ÏߵĽáÊø¶ø½áÊø£¬ÕâÑù¸ºµ£ÊDz»ÊǺܵ«ÄØ£¿ËùÒÔÒ»°ã¶¼ÊÇÒÔstandaloneÆô¶¯¡£
·ServerRoot "/usr/local/httpd"
´ËΪapacheµÄĿ¼
·#LocdFile /use/local/httpd/logs/httpd.lock
±£ÁôÔ¤ÉèÖµ£¬²»¸ü¶¯
·PidFile /usr/local/httpd/logs/httpd.pid
´ËÎļþ¼Ç¼×ÅapacheµÄ¸¸´¦Àí³ÌÐòid
·ScoreBoardFile /usr/local/httpd/logs/httpd.scoreboard
´ËÎļþ´æ´¢´¦Àí³ÌÐòµÄÐÅÏ¢
·#ResourceConfig conf/srm.conf
·#AccessConfig conf/access.conf
ÓÉÓÚÎÒÃÇͳ³ïÓÉhttpd.confÀ´¹ÜÀí£¬ËùÒÔÕâÁ½¸öÎļþÔ¤ÉèÊÇ×¢½âÆðÀ´µÄ£¬¿ÉÒÔ±£ÁôÔ¤ÉèÖµ²»¸ü¶¯
·Timeout 300
É趢³¬Ê±µÄʱ¼ä¡£Èç¹ûÓû§¶Ë³¬¹ý300Ã뻹ûÁ¬ÉÏserver£¬»òserver³¬¹ý300Ã뻹û´«ËÍÐÅÏ¢¸øÓû§¶Ë£¬¼´¶ÏÏß¡£
·KeepAlive On
ÔÊÐíÓû§¶ËµÄÁ¬ÏßÓжà¸öÇëÇó£¬ÉèΪOff±íʾ²»ÔÊÐí
·MaxKeepAliveRequests 100
ÿ´ÎÁ¬Ïß×î´óµÄÇëÇóÊ÷ľ£¬Êý×ÖÓú´ó£¬Ð§ÄÜÓúºÃ¡£0±íʾ²»ÏÞÖÆ
·MinSpareServer 5
·MaxSpareServers 10
MinSpareServer 5±íʾ×îÉÙ»áÓÐ5¸öÏÐÖõĴ¦Àí³ÌÐò£¬Èç¹ûʵ¼ÊµÄÊýÄ¿ÉÙÓÚ´ËÊýÄ¿£¬Ôò»áÔö¼Ó´¦Àí³ÌÐò¡£MaxSpareServers 10±íʾ×î´óµÄÏÐÖô¦Àí³ÌÐòÊýÄ¿£¬Èç¹ûÄãµÄÍøÕ¾ÐèÇóÁ¿ºÜ´ó£¬¿ÉÒÔ½«´ËÊýÄ¿Éè´óһЩ£¬´ó²»ÒªËæ±ã½«´ËÊýÄ¿ÉèµÃÌ«´ó¡£
·StartServers 5
Æô¶¯Ê±ServerµÄÊýÄ¿
MaxClients 150
ÏÞÖÆͬʱ¼ä×î´óµÄÁ¬ÏßÊýÄ¿£¬µ±È»²»ÄÜÉèµÃ̫С£¬Ò»µ©´ïµ½´ËÊýÄ¿£¬¾ÍÎÞ·¨ÔÙÔö¼ÓÓû§¶Ë
·MaxRequestPerChild 0
ÏÞÖÆ×Ó´¦Àí³ÌÐò½á¹ûÇ°µÄÒªÇóÊýÄ¿£¬0±íʾ²»ÏÞÖÆ
·#Listen 3000
·#Listen 12.34.56.78:80
ʹÓÃÆäËüµÄÁ¬½Ó¶Ë¿Ú»òIP
·BindAddress *
¿ÉÒÔ½ÓÌý*£¨ËùÓÐIPµØÖ·£©¡¢Ö¸¶¨µÄIPµØÖ·»òÊÇÍêÕûµÄÓòÃû
·#LoadModule foo_module libexec/mod_foo.so
ʹÓÃDSOÄ£¿é
·#ExtendedStatus


Ïà¹ØÎĵµ£º

linux¿ªÆôtelnet·þÎñ

                                     
1¡£»ù´¡ÖªÊ¶
linuxÌṩ·þÎñÊÇÓÉÔËÐÐÔÚºǫ́µÄÊØ»¤³ÌÐò£¨daemon£©À´Ö´Ðеġ£
ÊØ» ......

Ïê½âLinux Initrd

ÔÚLinux²Ù×÷ϵͳÖУ¬ÓÐÒ»ÏîÌØÊâµÄ¹¦ÄÜ——³õʼ»¯ÄÚ´æÅÌINITRD(INITial Ram Disk)¼¼Êõ£¬¶øÇÒÄÚºËÖ§³ÖѹËõµÄÎļþϵͳӳÏñ¡£ÓÐÁËÕâÁ½ÏÄÜ£¬ÎÒÃÇ¿ÉÒÔÈÃLinuxϵͳ´ÓСµÄ³õʼ»¯ÄÚ´æÅÌÆô¶¯£¬²¢°ÑϵͳÄÚ´æµÄÒ»²¿·Ö×÷Ϊ¸ùÎļþϵͳ¹ÒÔØ¡£
¡¡
¡¡Ramdisk¾ÍÊǽ«ÄÚ´æµÄÒ»²¿·Ö·ÖÅäΪһ¸ö·ÖÇø²¢×÷ΪӲÅÌÀ´Ê¹Ó᣶ÔÓÚϵͳÔËÐÐ ......

linux ½ø³ÌͨÐÅ——ÐźŵÆ


ÐźŵÆÓëÆäËû½ø³Ì¼äͨÐÅ·½Ê½²»´óÏàͬ£¬ËüÖ÷ÒªÌṩ¶Ô½ø³Ì¼ä¹²Ïí×ÊÔ´·ÃÎÊ¿ØÖÆ»úÖÆ¡£Ï൱ÓÚÄÚ´æÖеıêÖ¾£¬½ø³Ì¿ÉÒÔ¸ù¾ÝËüÅж¨ÊÇ·ñÄܹ»·ÃÎÊijЩ¹²Ïí×ÊÔ´£¬Í¬Ê±£¬½ø³ÌÒ²¿ÉÒÔÐ޸ĸñêÖ¾¡£³ýÁËÓÃÓÚ·ÃÎÊ¿ØÖÆÍ⣬»¹¿ÉÓÃÓÚ½ø³Ìͬ²½¡£
Ò»¡¢ÐźŵƸÅÊö
ÐźŵÆÓëÆäËû½ø³Ì¼äͨÐÅ·½Ê½²»´óÏàͬ£¬ËüÖ÷ÒªÌṩ¶Ô½ø³Ì¼ä¹²Ïí×ÊÔ´·ÃÎÊ¿ØÖÆ»úÖÆ ......

Linux»ù±¾Ö¸Áî

Linux»ù±¾Ö¸Áî
alias
ÌæÖ¸ÁîÈ¡±ðÃû
¡ò alias ÁгöĿǰϵͳËùʹÓõÄËùÓÐÖ¸Áî±ðÃû
¡ò alias ±ðÃû=Linux Ö¸ÁîÃû³Æ ´ËʱÈôÊäÈ롸±ðÃû¡¹Ôò¹¦ÄÜ»á¸úÊäÈ롸Linux Ö¸ÁîÃû³Æ¡¹Ïàͬ
¡ò ÈôÏëҪÿ´Î¿ª»ú¶¼Ê¹Óô˱ðÃû£¬ÔÚ bash ÖУ¬Ò»¶¨ÒªÔÚ .bashrc ÖÐÖ¸¶¨£¬Èç¹ûÊÇ tcsh ÖУ¬ÔòÒªÔÚ .cshrc ÖÐÖ¸¶¨
ar
½«Ðí¶àµµ°¸±¸´æ³ÉÒ»¸ö»ò¶à¸ö ......

linux Ï̱߳à³Ì

±¾Õ½éÉÜ POSIX Ï̵߳Ļù±¾Ï̱߳à³ÌÀý³Ì¡£±¾Õ½éÉÜȱʡỊ̈߳¨¼´£¬¾ßÓÐȱʡÊôÐÔÖµµÄỊ̈߳©£¬ÕâÊǶàÏ̱߳à³ÌÖÐ×î³£ÓõÄÏ̡߳£±¾Õ»¹½éÉÜÈçºÎ´´½¨ºÍʹÓþßÓзÇȱʡÊôÐÔµÄÏ̡߳£
±¾Õ½éÉÜµÄ POSIX Àý³Ì¾ßÓÐÓë×î³õµÄ Solaris ¶àÏ߳̿âÏàËƵıà³Ì½Ó¿Ú¡£
Ï߳̿â
ÏÂÃæ¼òÒªÂÛÊöÁËÌض¨ÈÎÎñ¼°ÆäÏà¹ØÊÖ²áÒ³¡£
´´½¨È±Ê¡Ïß³Ì
Èç¹ûδ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ