apacheÆô¶¯Ê§°ÜÔõô½â¾ö
apacheÎÞ·¨Æô¶¯Ê±£¬¿ÉÄÜÊÇÓÉÓÚÉèÖùýʧ¡¢¶Ë¿Ú³åÍ»»òÆäËûÎÊÌâÒýÆðµÄ£¬³£¿´·¨¾öÒªÁìÓУº1¡¢ÕÒµ½¹ýʧÈÕÖ¾Îļþ£¬Éó²éÆäÖеĹýʧÐÅÏ¢²¢½â¾ö£»2¡¢È·±£ apache µÄÉèÖÃÎļþ׼ȷÉèÖã»3¡¢ÔÚÏÂÁîÌáÐÑ·ûÏÂʹÓà “httpd -t” ÏÂÁî»ò “apache2ctl configtest” ÏÂÁîÀ´¼ì²éÉèÖÃÎļþµÄÓï·¨¹ýʧ£»4¡¢È·±£apache×°ÖÃĿ¼¼°Æä×ÓĿ¼¾ßÓÐÊʵ±µÄȨÏ޵ȵȡ£
Apache ÎÞ·¨Æô¶¯Ê±£¬¿ÉÄÜÊÇÓÉÓÚÉèÖùýʧ¡¢¶Ë¿Ú³åÍ»»òÆäËûÎÊÌâÒýÆðµÄ¡£ÒÔÏÂÊÇһЩ³£¼ûµÄ½â¾öÒªÁ죺
¼ì²éÈÕÖ¾Îļþ£ºÔÚ Apache µÄ×°ÖÃĿ¼ÏÂÕÒµ½¹ýʧÈÕÖ¾Îļþ£¨Ò»Ñùƽ³£Îª error.log£©£¬Éó²éÆäÖеĹýʧÐÅÏ¢£¬¿ÉÒÔ×ÊÖúÄúÈ·¶¨ÎÊÌâËùÔÚ¡£
¼ì²éÉèÖÃÎļþ£ºÈ·±£ Apache µÄÉèÖÃÎļþ£¨httpd.conf£©×¼È·ÉèÖá£ÌØÊâÊǼì²é¶Ë¿ÚºÅÊÇ·ñÓëÆäËû³ÌÐò³åÍ»£¬ÀýÈç 80 ¶Ë¿Ú±»ÆäËû Web ЧÀÍÆ÷Õ¼Óá£
¼ì²éЧÀÍ״̬£ºÔÚ Windows ²Ù×÷ϵͳÖУ¬Äú¿ÉÒÔʵÑéÔÚÏÂÁîÌáÐÑ·ûÏÂʹÓà “httpd -t” ÏÂÁî»ò “apache2ctl configtest” ÏÂÁîÀ´¼ì²éÉèÖÃÎļþµÄÓï·¨¹ýʧ¡£ÔÚ Linux ²Ù×÷ϵͳÖУ¬¿ÉÒÔʹÓà “apachectl configtest” ÏÂÁî¡£
ȨÏÞÎÊÌ⣺ȷ±£ Apache ×°ÖÃĿ¼¼°Æä×ÓĿ¼¾ßÓÐÊʵ±µÄȨÏÞ£¬ÒÔ±ã Apache Àú³ÌÄܹ»¶ÁÈ¡ºÍдÈëÐëÒªµÄÎļþ¡£
¼ì²éÒÑÓö˿ڣºÈôÊÇ Apache Æô¶¯Ê§°Ü²¢ÏÔʾ¶Ë¿Ú³åÍ»¹ýʧ£¬ÇëʹÓö˿ÚɨÃ蹤¾ß£¨Èç netstat£©¼ì²éÊÇ·ñÓÐÆäËûÓ¦ÓóÌÐòÕýÔÚʹÓÃÏàͬµÄ¶Ë¿Ú¡£ÈôÊÇÊÇÕâÑù£¬Äú¿ÉÒÔÐÞ¸Ä Apache µÄÉèÖÃÎļþ£¬½«Æä°ó¶¨µ½ÆäËû¿ÉÓö˿ڡ£
·À»ðǽÉèÖ㺼ì²é·À»ðǽÉèÖã¬È·±£ Apache ËùʹÓõĶ˿ÚûÓб»·À»ðǽÆÁÕÏ¡£
ÖØÐÂ×°Öûò¸üУºÈôÊÇÒÔÉÏÒªÁ춼ÎÞЧ£¬¿ÉÒÔʵÑéÖØ×° Apache »òÕßÉý¼¶µ½×îаæÔÀ´½â¾öÎÊÌâ¡£
ÈôÊÇÄúÈÔÈ»Óöµ½ÎÊÌ⣬½¨Òé²Î¿¼ Apache ¹Ù·½Îĵµ¡¢ÔÚÏà¹ØÊÖÒÕÂÛ̳ÉÏÌáÎÊ»ò×·ÇóרҵÈËÊ¿µÄ×ÊÖú¡£
ÒÔÉϾÍÊÇapacheÆô¶¯Ê§°ÜÔõô½â¾öµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡