Home  >  Q&A  >  body text

Apache cannot start.

It was fine yesterday, but it won't start today.

The test port is

Your port 80 is not actually used.
PHPzPHPz2713 days ago728

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:03:48

    Check the occupancy of port 80 under Linux
    netstat –anp | grep 80
    Then according to the displayed content, check the process number occupying port 80
    For example:
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1253/unknow
    Here 1253 is the pid/process number.
    Let’s kill him:
    kill -s 9 1253

    Then start your apache and try it.


    Windows Check port 80 occupied
    Summon task manager:


    Tick ​​the PID box

    Enter cmd and enter
    netstat -ano | findstr "80"


    Here 3740 is the process number that occupies 80, then find the corresponding process in the task manager and delete it ٩(×̯×)۶
    Try starting apache again.

    reply
    0
  • Cancelreply