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 ?
You can easily stop a program in Linux terminal by pressing the Ctrl+C keys.
Immediately process termination and port release:
fuser -k 1935/tcp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With