查看端口占用

windows下

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

  2.tasklist|findstr pid

杀掉

  任务管理器杀掉进程

linux下

  1.netstat –apn | grep 8001 查看最后一列pid/进程名

  2.ps -aux|grep 进程名

     或

     ps -aux|grep pid

杀掉

     kill -9 pid

posted on 2015-01-30 17:13  烂记性需要烂笔头  阅读(130)  评论(0)    收藏  举报

导航