I have 6 instances of httpd running, and they respawn after I kill them. I tried the solution provided on this answer ,
$ pgrep -fl foo 40679 bash /tmp/foo $ launchctl list|grep 40679 40679 - com.example.foo
in my case,
sudo pgrep -fl httpd
to find out what process is creating them and got this as a result:
83071 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf -E /private/var/log/apache2/service_proxy_error.log
and six more instances that according to my Activity Monitor depend on the first one. Then I entered
sudo launchctl list|grep 83071
and got this
83071 0 com.apple.serviceproxy which I guess is the process / file / service that is launching this instances, but I cannot find it anywhere.
I also tried launching and then killing Apache as per this question, but that just created another instance of httpd.
Excuse my utter ignorance on the CLI, just trying to find out how to kill those httpd instances that are using the 8443 port to listen and conflict with another service I'm trying to install.