Issue
My problem is that my localhost port 80 is taken by an auto-reloading Django proc that I no longer need and I cannot kill the Django proc(s) because they auto-reload upon being killed.
I did Django a while ago for an interview assignment so it's not trivial to get back into that and manage it that way. Is there a way simply on macos to prevent this process from coming back? I've tried using launchctl
but it's unclear which item would be facilitating the auto-reloading.
I have 2 mystery django process that get auto-reloaded whenever I kill it with sudo kill {PID}
. i.e. I kill the procs, I check to make sure port 80 is not being used anymore with sudo lsof -i :80
, and it shows 2 new procs that have auto-reloaded.
I am hoping to do anything at all so that when I run sudo lsof -i :80
I get no results.
Solution
You can do this command to kill the process and not auto reload
[Update] This command works for linux only
fuser -k 80/tcp
In this case, apache had to be stopped using
sudo apachectl stop
or sudo httpd -k stop
Answered By - Arun T Answer Checked By - Timothy Miller (WPSolving Admin)