Can you help me to close socket connection force.
I have PHP script which works like listener at port 1234 But some times i need to relaunch this script. So i'm doing "killall php" and then "php script.php &"
but from first time i cant launch script because somebody already use port.
and when i check port by command "ss | grep 1234" and i see
tcp FIN-WAIT-1 0 1 1.2.3.4:1234 146.0.82.10:47152
tcp FIN-WAIT-1 0 1 1.2.3.4:1234 123.123.123.123:56286
tcp FIN-WAIT-1 0 1 1.2.3.4:1234 146.0.82.11:64941
So after 1-2 min they will stop by own... But waiting its not good.
How can i stop them now forcly?
Thanks