在开发中有时我们需要确定哪个占用了8080端口,在windows命令行窗口下执行:

1 netstat -aon|findstr 

  命令执行后打印出来的结果如下所示:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmwAAABICAIAAADEVT57AAAIzUlEQVR4nO2dS5IrtxFFa7GeO7wc7cADL6KWoS04QovwoC1GdQF5cTNRP5LnDBRFIHHzgyTzSU/dXP7675//+fcf//rnPxYAAABIwRAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAowhAFAAAoshui64aa4Pqbo+L8PPwSXVPPW+5LOM2mnI3/ffvzfSN/At3qiWar9dWVFxR9PkQfxVl7GLAdotvaOXXUH3+myL3cG55Z5NSlvCxT6ynxLLpPhN9USNn4s+K+8jU6h0hlRc62v4BoeHS3osWsC2GZUta+xGdFN0fHHsa8hqguYvfDLiq0uJtHcXtsTgCFYjr3ciXDz6anBXxSGMemM6+WVTjb/hr8z7EDXcyY+SL6ebWH6NYexkRDdEdU1tTn47qhK75dd0S6R8SiWB/qCFJ+9VYkXva7Hl23ZfSe7AYciXR3L4vfWY/8bl8W4vHtu9WLajif1wX2WWbyitT0Sk3/kPpsXzp1i+x3i+1L0x7GmENUEDXT7rm7OPO8k83qdCPX9kNm8hrKOkXWstqdEDkkr6P01+a6U/oF+2E917/xXaT8RvqtjdY8Kp6IrH17docZm5mv4zeV1GQ8Q48iqiiFrkg3DN8eBswP0cXrM7OxtMgSX/baMPTluHZI+XVyF14ip/N5CZHJegrNQt3W3/eejV9Em63bNnKRmtYZ1jPKV5wVwQzjKa/7+lm6+tlnEZWOUyRl+i3Xcxjb1qBbn1Ynaw9jZv5OdMuwn8yGSwlG+o6OOOLs+nGazzP6ZuSpfMvxm17KtWqPp+IfxjlU1uvC7yH20W7qjgr6h8dv4uSVyt2/3+7uBX5TddMxtFtZexhj/t+5uxJ3ae8p23Cp50lf2bPDrCefj9KP8hLrWiT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S8UTPrWsR/C049XTq0BrUY/r47xON3B0bZNdyuDipX7OP+kn3WVe5UMNtw9zVDILv6ZOZezyqTxajHyL7G2lDWmT8y+80dzptRoWy10R0bVuzBxZ/uDUsYPcKcnzJ94ke0mRlfcdvVr9mr6MV68P4zRq+XmbrcDbOPZo5lvUdv1l9be/HoNdb137dVnuIphI8j24Mup56pVC6YUh+PXVefgzX4AQZrUdVmk3q479PNHLnBOMH6ddhe2cz+gX7yK+Ip+2wKH7zcndns3U4m2/rEycGZ73QJ+uGgv2N7MJrF/WRrkhbuqGZr1/z6xy5Hievdr3tq6VprXpMH/99oiIqHU8qyKgOXfFCEbIV0/fiPA/FUyl39e9qBsG39Ul0RCdruujG/3r5+uf6u/18+7uIrkwUJ7rc7q7WFyFFcYrgs35vr382+GXUV8t8Uh//faJD16L/ZvSjS3o9d+/b16/F07ZatD5Ujowjhd16rQ5nIyJJJevrd3tjua9PnF3HSxT/rs2ih6H9jezCE7ticW2I9LvPO9eiLKa4yEscuRenULvOWXt91V5Bjo//PtGh62EKNf3UBRf0Z+yj3SiL1IWaiw9pjB1f1SdD4zP6ZGf5es7a30g3Bh2kf+9iyzxyoIiT2o1kc3QSrPDx3yeqXfvNt13RKWudo/Rr9o6a1nfi95WdaK/ke/ok6zcbj3n29TJrfyNtSItXn2hl8mpS+r5Ia/a04s88R5oVPv77RNeGdsu07x5x9IWLKNoz4ilHlVWIjpg6tyDqNizX5L0UbiSlf0E8XRydrF/T9Xm0dXuFlKpbezDSv8vvuhmcXf27SOUr1p1dC35jEQAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQBGGKAAAQI3/AY7sNCsvJqh5AAAAAElFTkSuQmCC" alt="" />
  可以看到端口被进程号为5648的进程占用,继续执行下面命令:

1 tasklist |findstr "5648"

  命令执行后打印出来的结果如下所示:
  aaarticlea/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PMyUvFTr+w0YnHh2GU5+mzlj8TX0dfy03lUVq2lTX/tZC29/iukUWIv2s3IlTk63PQSFKKlufKH6hnCUylZWfHtgS8HdnwES8UwAAPhtmIfjwlSYAfCfMQgAAWB1mIQAArA6zEAAAVodZCAAAq8MsBACA1TnMQn5EEN6NUtF8Gm0RNrPeR6Ifgp/X/Q5E397jXQRTJn5Fsmmntt985Bvff3SimoVZCG+O6Mnmo+5Fyl7LbhgXwWX8aJrz5lXeRQDZJo/ycuRvfe/4Him8Oc4djuTRG2Hmzt8Gs/CjqfvwntOMOnyg57s6e0dXzMJbr4D+G2xCWK8d/fpjk6ydpj58B9GxannzLqXumNDpXpbSeg358igA+vyDODTbzacWNU92l9DJdq9pv3bR1T8H83uke3m0dvTFltTebDzwuZRnuvJNzqp6rf1q+RXrKAD6/LN4nFGpXll3ej9Imvdl/9S3LPLyhcLF3U2uZ2GzfOJOan2zJ0pF86mpD9+E04f7fqvlfqtECqkYhCmhL4zQ55/C4aRuPjLtzultvVfk5TSz4yK7axYxC09fm+k5p1h6Lxr4Smb6MLLj+NqC+5nyK/o2qw/vz+FNdfPxOW/R7K69TpSX08ldmnftcgZm4bYrh3m3RW7zdoQ+fAHOWWf7weyTpqmz4unG6d8LeEPE8d3vfRvtw/JDZLmb5kDfvqbVD/+vfTOx0hpj4vbW+pGRrVXrvdAselMfvobofLNy56mj3O1PR9+U0+efS/MQb3Y604eb8X5uPjLj0fFHBq9Cz0IAAFiTtcbBv++R3v/FCwAAwLvA79oDAMDqMAsBAGB1mIUAALA6zEIAAFgdZiEAACzOX7sKw4p5IwKPAAAAAElFTkSuQmCC" alt="" />
  如果需要查看其他端口。把8080改成要查询的端口号即可。

windows操作系统用命令提示符查看占用端口号的进程的更多相关文章

  1. windows cmd下netstat查看占用端口号的进程和程序

    其实很简单,大家可以在cmd窗口 C:\Documents and Settings\Administrator>netstat -help 显示协议统计信息和当前 TCP/IP 网络连接. N ...

  2. linux查看占用端口号的程序及pid

    netstat -tunlp|grep 端口号 圈出来的就是pid

  3. 通过cmd命令,杀掉占用端口号的进程

    错误问题:[Error running public: Unable to open debugger port (127.0.0.1:53110): java.net.BindException & ...

  4. Centos下查看占用端口并关闭进程方法

    1.查看端口占用情况:netstat –tlnp   (加p可以看到是哪个进程占用了端口); 也可以用grep查找对应的被占用的端口,键入netstat –tlnp | grep 3306可以看到PI ...

  5. Windows环境下,用netstat命令查看某个端口号是否占用

    目标:在Windows环境下,用netstat命令查看某个端口号是否占用,为哪个进程所占用. 操作:操作分为两步:(1)查看该端口被那个PID所占用;方法一:有针对性的查看端口,使用命令 Netsta ...

  6. Windows - 杀死占用某个端口号的进程

    Windows不像Linux,Unix那样,ps -ef 查出端口和进程号,然后根据进程号直接kill进程. Windows根据端口号杀死进程要分三步: 第一步 根据 端口号 寻找 进程号 C:\&g ...

  7. Linux及Windows查看占用端口的进程

    想必大家在部署环境启动服务的时候,会遇到服务起不起来的问题,看日志,说是端口被占用了. 有的时候,我们不想改端口,那么,就需要去查看到底是哪个应用把这个端口给占用了,然后干掉它即可. 下面分别列举li ...

  8. windows下根据端口号杀死进程

    Windows不像Linux,Unix那样,ps -ef 查出端口和进程号,然后根据进程号直接kill进程. Windows根据端口号杀死进程要分三步: 第一步 根据端口号寻找进程号 C:\>n ...

  9. CentOS查看占用端口并关闭

    1.查看占用的端口号 netstat -lnp|grep 80  #80 是你需要查看的端口号 二.查看进程的详细信息 ps 29280  #查看进行信息,是否是自己要找的进程 三.杀掉进程 kill ...

随机推荐

  1. PHP面向对象编程知识要点

    1.基本概念 1.1.面向对象的阶段概念 OOA:面向对象分析 OOD:面向对象设计 OOP:面向对象编程 1.2.类的概念 面向对象中的类,实质上就是现实世界中一类有着相似属性事物抽象的概括,像鸟类 ...

  2. UESTC 887 方伯伯的儿童节 --树形DP

    定义: 1.dp[u][1]表示u这个点设立糖果发放点且u这棵子树满足条件时的最少糖果点数 2.dp[u][0]表示u这个点不设立发放点且u这棵子树满足条件时的最少糖果点数 设v1,v2……vn为u的 ...

  3. Visual Studio 2010 Rebuild问题

    在使用Visual studio2010编译工程时常遇到每次Build都是重新编译,对应的英文版的错误提示是 VS2010: project is not up to date “because ”A ...

  4. asp.net 超链接 下载TEXT文件,而不是直接在IE中打开

    问题描述:后台生成了文本文件,用超链接提供给用户下载.点击超链接,下载Excel文件没问题,但文本文件会直接被打开,而不是弹出下载窗口. 解决方法:把HyperLink改为LinkButton,在Cl ...

  5. VC/MFC使用OLE操作 EXCEL

    1.VC插入sheet页到指定位置 插入sheet的函数用 sheets.Add(Before, After,Count,Type) 四个参数含义如下: 四个const   VARIANT:      ...

  6. java_前端_autocomplete_搜索框自动匹配提示

    效果图: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> < ...

  7. 新书《Ext JS 4.2 实战》终于出炉了

    在清华大学出版社网站看到了书籍信息了,具体地址是:http://www.tup.tsinghua.edu.cn/book/Showbook.asp?CPBH=056140-01&DJ=51 预 ...

  8. 单总线(1-Wire Bus)技术及其应用

    单总线(1-Wire Bus)技术及其应用 reference: http://www.doc88.com/p-2106151016582.html 摘要:介绍了美DALLAS公司推出的单总线技术的原 ...

  9. 第二阶段第九次spring会议

    今天我将对软件进行宠物信息的添加. 清屏功能 private void button5_Click(object sender, EventArgs e) { textBox2.Text = &quo ...

  10. CentOS部署pyspider

    0x00 环境 阿里云ECS云服务器 CPU:1核 内存:2G 操作系统:Centos 7.3 x64 地域:华北 2(华北 2 可用区 A) 系统盘:40G 0x01 安装依赖 yum instal ...