Menu
![Stop Stop](/uploads/1/2/5/4/125498385/940310651.png)
To stop mongodb if it's already running: brew services stop mongodb. As edufinn pointed out in the comment, brew services is now available as user-defined command and can be installed with following command: brew tap gapple/services. How do I disable unnecessary services under Mac OS X to secure my Mac OS X based desktop / server / laptop? Skip to content. Search; Menu. Linux and Unix tutorials for new and seasoned sysadmin. Mac OS X Disable Unnecessary Services last updated December 25, 2009 in Categories Mac OS X, Security. I am looking for a way to get.
I am using OS X El Capitan with the Server (app) configured to allow me VPN access to my home network. Unfortunately, the Server app has decided to start a bunch of httpd processes, which are now listening on ports 80, 443 and others, even though the Server settings for Websites is OFF and no services should be started on these ports. I do not want or need these services active and would like httpd to be shut down (or not start to begin with). Unfortunately, I can neither kill those processes (they just restart straight away) nor can I control them through launchctl. Sudo lsof -i:80 httpd 422 root 5u IPv6 0x7. 0t0 TCP.:http (LISTEN) httpd 425 www 5u IPv6 0x7.
![How How](/uploads/1/2/5/4/125498385/264051924.jpg)
0t0 TCP.:http (LISTEN) ps u 422 USER PID%CPU%MEM VSZ RSS TT STAT STARTED TIME COMMAND root 422 0.0 0.0 24?? Ss 5:55PM 0:00.07 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/Proxy/apacheserviceproxy.conf -E /private/var/log When trying: sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist /System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service So, how do I terminate those processes and free up those ports? I know there is a config file for the apache server here: /Library/Server/Web/Config/Proxy/apacheserviceproxy.conf I can remove the following lines to unblock those ports, but the httpd processes are still running. Listen 80 listen 443.