Home  >  Q&A  >  body text

How to shut down the built-in apache service in macOS Sierra and release port 80

I want to install nginx and let it use port 80, thank you!

曾经蜡笔没有小新曾经蜡笔没有小新2713 days ago555

reply all(4)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 16:59:52

    sudo apachectl stop
    Close the apache server

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 16:59:52

    lsof -i:80

    Then kill 掉 Apache 任务对应的 pid

    If lsof 输出太多,试试在后面加上 | grep -i 'apache'

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 16:59:52

    Guess, vi /etc/apache2/httpd.conf, modify listen 80 to listen 88.
    You don’t have to worry about restarting like this.

    reply
    0
  • 黄舟

    黄舟2017-05-16 16:59:52

    Look for the configuration file and modify port 80 of nginx or apache to another port.

    reply
    0
  • Cancelreply