gpt4 book ai didi

windows - 由 : java.net.BindException 引起:地址已在使用中:绑定(bind)

转载 作者:行者123 更新时间:2023-12-03 11:06:23 25 4
gpt4 key购买 nike

我正在尝试通过单击 Run as -> Spring Boot App 来运行 Spring Boot 应用程序。我收到错误消息:

Caused by: java.net.BindException: Address already in use: bind



当我使用 netstat 命令时,我看到下面没有进程 ID:
netstat -na | find "8080"

TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING

TCP [::]:8080 [::]:0 LISTENING

注意 - 我在 上运行我的代码 window 机器

我如何杀死这些进程?

最佳答案

您可以通过在 server.port=4567 中提供类似 application.properties 的内容来更改应用程序的端口号。

或者

您可以按照 http://www.codeman.in/blog/windows-kill-process-by-port-number-157 中提到的步骤来终止在端口号上运行的进程:-

enter image description here

关于windows - 由 : java.net.BindException 引起:地址已在使用中:绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52492078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com