Use the command
option 1:
netstat -tulpn | grep 1100
It will show the list of processes with port number and process id
tcp 0 0 0.0.0.0:1100 0.0.0.0:* LISTEN 22746/Rserve.dbg
the number before /Rserve.dbg
is a process id. Now use kill command to kill the process
kill -9
22746
-9 implies the process will be killed forcefully.
option 2:
lsof -i:1100
;kill -9
22746
oneshot: kill -9 $(lsof -t -i:1100)
option 3:
# fuser
1100
/tcp
#
fuser -k
1100
/tcp (kill)
No comments:
Post a Comment