apache80¶Ë¿Ú±»Õ¼ÓÃÔõô°ì
µ± apache 80 ¶Ë¿Ú±»Õ¼ÓÃʱ£¬½â¾öÒªÁìÈçÏ£ºÕÒ³öÕ¼Óøö˿ڵÄÀú³Ì²¢¹Ø±ÕËü¡£¼ì²é·À»ðǽÉèÖÃÒÔÈ·±£ apache δ±»×èÖ¹¡£ÈôÊÇÒÔÉÏÒªÁìÎÞЧ£¬ÇëÖØÐÂÉèÖà apache ʹÓòî±ðµÄ¶Ë¿Ú¡£ÖØÆô apache ЧÀÍ¡£
Apache 80 ¶Ë¿Ú±»Õ¼Óýâ¾ö¼Æ»®
µ± Apache 80 ¶Ë¿Ú±»Õ¼Óã¬ÎÞ·¨Æô¶¯»òÔËÐÐ Web ЧÀÍʱ£¬¿ÉÒÔʹÓÃÒÔÏÂÒªÁì½â¾öÎÊÌ⣺
1. ÕÒ³öÕ¼Óö˿ڵÄÀú³Ì
ʹÓà netstat -ano | findstr :80 ÏÂÁîÕÒµ½Õ¼Óà 80 ¶Ë¿ÚµÄÀú³Ì ID (PID)¡£
È»ºóʹÓà tasklist /fi “pid eq PID” ÏÂÁî»ñÈ¡Àú³ÌÃû³Æ¡£
2. ¹Ø±ÕÕ¼ÓÃÀú³Ì
ʹÓà taskkill /pid PID /f ÏÂÁîÇ¿ÖÆÖÕÖ¹Àú³Ì£¬ÆäÖÐ PID ÊÇÕ¼ÓÃÀú³ÌµÄÀú³Ì ID¡£
3. ¼ì²é·À»ðǽ
È·±£·À»ðǽδ×èÖ¹ Apache »á¼û 80 ¶Ë¿Ú¡£ÈôÊÇ·À»ðǽÒÑÆôÓã¬ÇëÌí¼Ó¹æÔòÒÔÔÊÐí Apache ʹÓøö˿ڡ£
4. ÖØÐÂÉèÖÃ Apache
ÈôÊÇÒÔÉÏÒªÁì²»Æð×÷Ó㬿ÉÒÔÖØÐÂÉèÖà Apache ʹÓòî±ðµÄ¶Ë¿Ú¡£
±à¼ Apache ÉèÖÃÎļþ (httpd.conf)£¬ÕÒµ½ÒÔÏÂÐУº
Listen 80
µÇ¼ºó¸´ÖÆ
½« 80 ¸ü¸ÄΪÁíÒ»¸öδ±»Õ¼ÓõĶ˿ڣ¬ÀýÈç 8080¡£
5. ÖØÆô Apache
ÖØÐÂÉèÖà Apache ºó£¬Ê¹ÓÃÒÔÏÂÏÂÁîÖØÆôËü£º
Windows£ºapachectl -k restart
Linux£º/etc/init.d/apache2 restart
ÌáÐÑ£º
ÈôÊÇÎÞ·¨Ç¿ÖÆÖÕÖ¹Õ¼ÓÃÀú³Ì£¬¿ÉÒÔʵÑéÒÔÖÎÀíԱȨÏÞÔËÐÐÉÏÊöÏÂÁî¡£
ÈôÊÇÖØÐÂÉèÖà Apache ʹÓòî±ðµÄ¶Ë¿Ú£¬ÐèÒª¸üпͻ§¶Ë»ò Web ЧÀÍÆ÷ÉϵÄÉèÖÃÒÔʹÓÃж˿ڡ£
ÈôÊÇÎÊÌâÈÔÈ»±£´æ£¬¿ÉÒÔʵÑé½ûÓà IPv6£¬ÓÉÓÚÕâ¿ÉÄܻᵼÖ¶˿ڳåÍ»¡£
ÒÔÉϾÍÊÇapache80¶Ë¿Ú±»Õ¼ÓÃÔõô°ìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡