Reputation: 69
I have searched and tried a lot of solutions here and all over Google. My situation is as follows.
I just don't want Apache to be running.
1) localhost leads to "It works!" page
2) The command sudo apachectl stop
results in:
/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service
3) sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
leads to the same output as in the number 2.
Upvotes: 6
Views: 4043
Reputation: 1
I was using Nginx, so this command works for me:
sudo nginx -s stop
Or you can kill processes manually:
sudo kill -9 325 384 385 386 387 388 389 390 391
After stopping nginx, you can verify it's no longer running by running the following command:
sudo lsof -i:80
Upvotes: 0
Reputation: 837
I was experiencing the same issue, based on this guide the following worked for me:
$ sudo apachectl stop
$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
Upvotes: 3