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.
$ sudo lsof -iTCP -sTCP:LISTEN -n