`

window+linux查看指定端口,杀死进程

阅读更多

查看windows所有端口进程
netstat  -ano   

查看指定端口占用
netstat -aon|findstr "端口"

杀死进程
taskkill -F /pid 3080

 

LINUX

查看所有进程

netstat –apn

 

查看程序进程:

ps -aux | grep tomcat

 

查看linux下查看指定端口占用

netstat –apn | grep 8080

 

杀死进程

kill -9 [PID]

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics