Best way to do it is to run the command
netstat -lnptu | grep :<port#>
This will give you the PID of the service, and then you can run
kill <PID>
or
kill -9 <PID>
if just a regular kill doesn’t work.
Best way to do it is to run the command
netstat -lnptu | grep :<port#>
This will give you the PID of the service, and then you can run
kill <PID>
or
kill -9 <PID>
if just a regular kill doesn’t work.