apacheЧÀÍÆ÷ÔõôÖØÆô
ÒªÖØÆô apache ЧÀÍÆ÷£¬Çëƾ֤ÒÔÏ°취²Ù×÷£ºlinux/macos£ºÔËÐÐ sudo systemctl restart apache2¡£windows£ºÔËÐÐ net stop apache2.4 È»ºó net start apache2.4¡£ÔËÐÐ netstat -a | findstr 80 ¼ì²éЧÀÍÆ÷״̬¡£
ÔõÑùÖØÆô Apache ЧÀÍÆ÷
ÒªÖØÆô Apache ЧÀÍÆ÷£¬Çëƾ֤ÒÔÏ°취²Ù×÷£º
Linux ºÍ macOS
ÒÔ root Óû§Éí·Ý»òͨ¹ýʹÓà sudo ÏÂÁîÊäÈëÖնˡ£
ÔËÐÐÒÔÏÂÏÂÁ
sudo systemctl restart apache2
µÇ¼ºó¸´ÖÆ
Windows
·¿ªÏÂÁîÌáÐÑ·û»ò PowerShell¡£
ÊäÈëÒÔÏÂÏÂÁ
net stop Apache2.4 net start Apache2.4
µÇ¼ºó¸´ÖÆ
¸ü¶àÐÅÏ¢
ʹÓà systemd£ºsystemctl restart apache2 ÏÂÁîʹÓà systemd ÖØÐÂÆô¶¯ Apache ЧÀÍ¡£
ʹÓà service ÏÂÁservice apache2 restart ÏÂÁîÔÚ Debian/Ubuntu µÈ½Ï¾ÉµÄ Linux ¿¯ÐаæÉÏÖØÐÂÆô¶¯ Apache ЧÀÍ¡£
ÔÚ Windows ÉÏ×èÖ¹ºÍÆô¶¯Ð§ÀÍ£ºnet stop ºÍ net start ÏÂÁîÓÃÓÚÔÚ Windows ÉÏ×èÖ¹ºÍÆô¶¯Ð§ÀÍ¡£Apache2.4 ÊÇ Apache ЧÀÍÔÚ Windows ÉϵÄĬÈÏÃû³Æ¡£
ÖØÐÂÆô¶¯ Apache ЧÀÍÆ÷ºó£¬ÄúÐèÒª¼ì²éËüÊÇ·ñÕýÔÚÔËÐУº
Linux ºÍ macOS
sudo systemctl status apache2
µÇ¼ºó¸´ÖÆ
Windows
netstat -a | findstr 80
µÇ¼ºó¸´ÖÆ
ÈôÊÇЧÀÍÆ÷ÕýÔÚÔËÐУ¬Äú½«¿´µ½Óë¶Ë¿Ú 80 Ïà¹ØµÄÌõÄ¿£¬ÕâÊÇ Apache ĬÈϼàÌýµÄ¶Ë¿Ú¡£
ÒÔÉϾÍÊÇapacheЧÀÍÆ÷ÔõôÖØÆôµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡