Stop apache service under MAC OS and still be able to visit local websites?

  linux, question

Use

sudo /usr/sbin/apachectl stop

Hint that the service cannot be found, but files under the root directory can still be accessed through 127.0.0.1
What’s wrong?

Did you restart? The Apache service will start and run automatically.

If you don’t want to start up and run automatically, you can run the following section, which is forbidden.

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Which day would you like to start up and run again, then run the following section

sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist