티스토리 뷰

공부

[Linux] kill a proccess by using port

승가비 2020. 4. 9. 23:43
728x90
lsof -ti:80 | xargs kill -9



lsof -ti:80
1234
ps -ef | grep 1234

https://stackoverflow.com/questions/11583562/how-to-kill-a-process-running-on-particular-port-in-linux

 

How to kill a process running on particular port in Linux?

I tried to close the tomcat using ./shutdown.sh from tomcat /bin directory. But found that the server was not closed properly. And thus I was unable to restartMy tomcat is running on port 8080. I ...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[Linux] set default editor  (0) 2020.04.11
[Jenkins] install  (0) 2020.04.11
[Python] pip install -r requirements.txt  (0) 2020.04.09
[Python] split string by length  (0) 2020.04.09
[Python] math ceil & floor & trunc & round  (0) 2020.04.09
댓글