一、 查看所有进程占用的端口

  在开始-运行-cmd,输入:netstat –ano可以查看所有进程

二、查看占用指定端口的程序
(1)命令窗口输出
  命令:netstat –ano | findstr "指定端口号"
  例子:查询占用了8080端口的进程:netstat -ano|findstr "8080"
(2)重定向输出(方便搜索)
  命令:
    netstat –ano | findstr "指定端口号" > 重定向文件(绝对路径或相对路径,覆盖
    netstat –ano | findstr "指定端口号" >> 重定向文件(绝对路径或相对路径,追加

  例子:
    查询占用了8080端口的进程:netstat -ano|findstr "8080" > D:\MyTemp\netstat8080.txt
    查询占用了8080端口的进程:netstat -ano|findstr "8080" > netstat8080.txt
    查询占用了8080端口的进程:netstat -ano|findstr "8080" >> D:\MyTemp\netstat8080.txt
    查询占用了8080端口的进程:netstat -ano|findstr "8080" >> netstat8080.txt

三、通过任务管理器杀死相关的进程
  方法一:使用任务管理器杀死进程
    打开任务管理器->查看->选择列->勾选PID选项,回到任务管理器上查看、点选pid对应的目标进程,按键Delete即可将该进程结束

  方法二:使用命令杀死进程
  (1)首先找到进程号(PID)对应的进程名称
    命令:tasklist | findstr 进程号
    例子:tasklist | findstr "java"
  (2)然后根据进程名称杀死进程
    命令:taskkill /f /t /im 进程名称,注意:没有标识字符串的双引号
    例子:taskkill /f /t /im /javaw.exe

四、查看netstat、tasklist、taskkill命令帮助文档

  C:\Users\Administrator>tasklist /? > D:\MyNote\taskkill_help.txt

  C:\Users\Administrator>taskkill /? > D:\MyNote\taskkill_help.txt

  C:\Users\Administrator>tasklist /? > D:\MyNote\tasklist_help.txt

  C:\Users\Administrator>netstat /? > D:\MyNote\netstat_help.txt

Tomcat启动程序端口冲突、确认相应进程及杀死冲突进程的解决方案的更多相关文章

  1. tomcat启动程序乱码和tomcat启动程序的标题乱码处理

    启动程序运行中的文字乱码: 解决方案: 找到Tomcat目录下conf文件夹中的logging.properties文件, 打开logging.properties文件,找到文件中的java.util ...

  2. eclipse创建spring boot项目,tomcat启动成功,但http://localhost:8080无法访问报错404解决方案

    spring boot的启动程序启动后,在访问http://localhost:8080地址的时候出现了错误,为什么出错网上我找了好久也没有得出具体的解决办法 当我指定到具体的action的时候,却可 ...

  3. Tomcat启动报错:[The configuration may be corrupt or incomplete]的解决方案

    1,场景说明: 偶然碰见Tomcat启动报错,此时并没有Add任何Web项目: Could not load the Tomcat server configuration at /Servers/T ...

  4. Myeclipse 自带Tomcat启动8080端口占用

    在启动Myeclipse自带的Tomcat发现报错,显示8080端口被占用 第一步:window+r 组合键,调出命令窗口. 第二步:输出命令:netstat -ano|findstr 8080   ...

  5. tomcat启动项目 端口占用

    转自:https://blog.csdn.net/u010427935/article/details/77297529 有时候电脑比较卡,项目比较大的情况下,eclipse没有完全停止tomcat的 ...

  6. tomcat启动时端口占用的问题怎么解决

    PS:web项目在启动的时候,一般会报Address already in use: bind,常规的处理思路为:删除任务管理器中的javaw.exe进程即可:当删除仍然解决不了时,一般处理思路如下, ...

  7. 如何在Windows Server 2008服务器中把Tomcat启动程序添加到服务中

    转自:https://blog.51cto.com/zdytesting/2314093 tomcat所在的bin目录: 添加服务: service install service_name 移除服务 ...

  8. tomcat启动程序报错

    1.问题 23-Apr-2021 10:53:38.897 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.de ...

  9. windows根据进程id杀死任务进程

    然后打开任务管理器找出来结束进程即可

随机推荐

  1. WebStrom2018注册码

    2RRJMBXW33-eyJsaWNlbnNlSWQiOiIyUlJKTUJYVzMzIiwibGljZW5zZWVOYW1lIjoi5b285bK4IHNvZnR3YXJlMiIsImFzc2lnb ...

  2. dfs模版

    dfs #include <stdio.h> #include <string.h> char Map[16][16]; int mv[16][16]; //mv[i][j] ...

  3. [LeetCode] 74. Search a 2D Matrix_Medium tag: Binary Search

    Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the follo ...

  4. [LeetCode] 441. Arranging Coins_Easy tag: Math

    You have a total of n coins that you want to form in a staircase shape, where every k-th row must ha ...

  5. 启动及更改tomcat 配置

    到tomcat安装的bin目录下面,双击那个startup.bat文件,启动Tomcat 去浏览器输入 http://localhost:8080/  然后出现下面的界面,那就说明你的tomcat配置 ...

  6. Java Selenium - 处理页面弹出窗

    1. 得到当前窗口句柄 2. 得到所有窗口句柄 3. 循环找到目标窗口 String currentWindow = driver.getWindowHandle(); Set<String&g ...

  7. Hybrid设计--核心交互

    普通网页中跳转使用a标签,这里我们要对跳转进行更多的干预,所以将全站的跳转收口到框架层,用forward去实现.拒绝用a和window.location.如果我想对所有跳转做一个处理,开动画或者对跳转 ...

  8. Go cookie

    Web状态,对于我们从c/c++转过来的人来说还是很重视的啊 但,如何用好cookie来让我心顺畅,目前还是有点障碍 可能是我没能完全理解cookie 但是,如果由浏览器客户端决定自己绑定那个cook ...

  9. Macbook pro开启允许任何源

    sudo spctl --master-disable

  10. C Alyona and Spreadsheet Codeforces Round #401(Div. 2)(思维)

    Alyona and Spreadsheet 这就是一道思维的题,谈不上算法什么的,但我当时就是不会,直到别人告诉了我,我才懂了的.唉 为什么总是这么弱呢? [题目链接]Alyona and Spre ...