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

  linux, question


sudo /usr/sbin/apachectl stop

Hint that the service cannot be found, but files under the root directory can still be accessed through
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