728x90
you can use
fuser -n tcp -k 9001
fuser (Unix) - Wikipedia
The Unix command fuser is used to show which processes are using a specified computer file, file system, or Unix socket. Example[edit] For example, to check process IDs and users accessing a USB drive: $ fuser -m -u /mnt/usb1 /mnt/usb1: 1347c(root) 1348c(g
en.wikipedia.org
fuser library 는 CentOS 에서는 이름이 다르다. 없다면 psmisc 로 package 를 설치하자
'LINUX' 카테고리의 다른 글
Nginx에서 자동 Redirection(301 Permanently moved) 설정하기 (0) | 2021.08.04 |
---|---|
SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0906A068:PEM routines:PEM_do_header:bad password read (0) | 2021.07.25 |
How to pass password automatically for rsync SSH command? (0) | 2021.07.25 |
리눅스 크론탭(Linux Crontab) 사용법 (0) | 2021.07.25 |
How to configure load balancing using Nginx (0) | 2021.07.25 |