Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux: How to kill programs that use port 1935?

I have a red5 server (JAVA) running on my Linux server.

Sometimes, the server shuts down. When I try to restart it I got an error:

"Binding error, this port is alerady in use".

So I try to kill the server with killall -9 java and try to restart the server: same error.

I have to wait for a while (about 2-3 minutes) and restart it again: that works.

I just need to know why when I kill the process I still have to wait 2-3 minutes before port 1935 is free and I can run the server again.

Is there a way to kill this process immediately and free the port ?

like image 384
yarek Avatar asked Oct 16 '10 12:10

yarek


People also ask

How do you kill a program in Linux?

You can easily stop a program in Linux terminal by pressing the Ctrl+C keys.


1 Answers

Immediately process termination and port release:

 fuser -k 1935/tcp
like image 198
Alexander Yancharuk Avatar answered Oct 02 '22 12:10

Alexander Yancharuk