Using Putty on my Vista machine, I logged into my development server (Ubuntu) and fired up the Django Test server. It runs an apache-like server to test my web app. The app runs on my internal IP address, on port 8080. I can open it via web browser, and navigating to 192.168.0.130:8080
.
I left my computer for a while (physically) and returned to find the Putty connection had timed out. No biggy, I just logged back into the server. However, when I try to run the Django test server now, it says the port is already in use. That means (I think) that the first test server instance is still running on port 8080.
How do I kill this process? What does the process even look like? I did a ps aux
and have a feeling that this is the offending process:
garfonzo 5719 0.3 0.0 0 0 ? D 08:58 1:07 [python]
Since I started the server this morning at about that time and Django is python-based. However, doing a kill 5719
does nothing -- the process is not killed and I still cannot start up the test server.
Any ideas!?
EDIT -- for more details:
I also ran netstat -tulpn
and the output is this:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.1.130:8080 0.0.0.0:* LISTEN -
Isn't that convenient, the one port I want to know the process ID of doesn't have a PID!
netstat
as root.sudo netstat....