查看端口占用

时间:2015-01-30 19:17:31   收藏:0   阅读:176

windows下

  1.netstat -aon|findstr 8001 查看最后一列pid

  2.tasklist|findstr pid

杀掉

linux下

  netstat –apn | grep 8080

  或

  ps -aux | grep tomcat

 

ps -aux|grep <进程号>

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!