Home  >  Q&A  >  body text

macos - MaxOS El Capitan local Apache2.4 has stopped serving. Why can localhost still access It Works?

The story started like this. The original intention was to start an apache locally on mac, and then insert some html docs into www to test and use it.

But in MaxOS X10.11 El Capitan, it was found under the built-in Apache2.4 that
no matter how to use the apache command, localhost still does not change, can it still work if the service is stopped?

And even if the path is changed in httpd.conf

Then restart, start, stop, restart... localhost still has no change,

The default html that comes with it is still in /Library/WebServer/Documents

Ask the environment god for help.

某草草某草草2713 days ago571

reply all(1)I'll reply

  • 阿神

    阿神2017-05-16 17:02:36

    $ sudo lsof -iTCP -sTCP:LISTEN -n

    reply
    0
  • Cancelreply