启动项目报端口被占用的解决方案


启动项目报端口被占用的解决方案

问题描述:

Description:

Web server failed to start. Port 8080 was already in use.

Action:

Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port.

解决方法1:

Windows环境

  1. 键盘输入(win+r),接着在运行对话框中输入“cmd”,进入命令窗口

  2. 输入

    netstat -ano|findstr "端口号"
  3. 看结果的最后一列卫进程的PID

  4. 输入

    taskkill /F /pid PID号
image-20211201111217667

Linux环境


文章作者: fejxc
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 fejxc !
评论
  目录