最近启动项目遇到端口被占用的报错,看了大家的思路,自己整理了一下,以便后期遇到同样的问题可以轻松找到

windows系统下端口被占用

以8080端口为例

win+R 输入cmd
输入:netstat -ano|findstr 8080 (找出当前占用8080的进程)
win、linux系统下端口被占用问题解决方法
输入:taskkill -pid 7244 -f, 回车

linux系统下端口被占用

输入:netstat -anp|grep 8080
win、linux系统下端口被占用问题解决方法
输入:kill -9 pid 17413+回车

相关文章:

  • 2021-07-01
  • 2021-06-01
  • 2021-12-10
  • 2022-01-26
  • 2021-06-26
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2021-12-09
  • 2021-12-29
  • 2021-06-28
  • 2022-12-23
  • 2021-05-11
相关资源
相似解决方案