fuser
To instal fuser on CentOS 7, run
yum install psmisc -y
To see which program use a port, run
fuser 80/tcp
To kill process running in TCP Port 80
fuser -k 80/tcp
Example
boby@sok-01:~$ fuser -k 8000/tcp 8000/tcp: 25333 boby@sok-01:~$
To instal fuser on CentOS 7, run
yum install psmisc -y
To see which program use a port, run
fuser 80/tcp
To kill process running in TCP Port 80
fuser -k 80/tcp
Example
boby@sok-01:~$ fuser -k 8000/tcp 8000/tcp: 25333 boby@sok-01:~$