search

Home  >  Q&A  >  body text

php - About apache port 80 being occupied

My apache80 port is occupied


I would like to ask if this is occupied and how to turn it off in mac system

怪我咯怪我咯2765 days ago964

reply all(5)I'll reply

  • 大家讲道理

    大家讲道理2017-06-15 09:24:17

    1. Terminal execution (Ni’s output may be different from mine, that’s okay. You can’t see port 1024 without sudo)

    sudo lsof -i:80


    2. Find the process, then

    sudo kill -9 202
    sudo kill -9 53

    reply
    0
  • PHP中文网

    PHP中文网2017-06-15 09:24:17

    kill -9 pid

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-15 09:24:17

    Two ways to check:

    1. netstat -anl | grep "80"

    2.lsof -i:80

    Then kill it

    reply
    0
  • 黄舟

    黄舟2017-06-15 09:24:17

    Find him and kill him

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-15 09:24:17

    Violently kill that process

    reply
    0
  • Cancelreply