Spring Boot服务无法启动。

huangapple go评论69阅读模式
英文:

Spring Boot service cannot be started

问题

I'm having trouble starting my Spring Boot application.

When I run it I get the following errors:

Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

Caused by: java.lang.IllegalArgumentException: standardService.connector.startFailed

Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed

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

I work on Linux. Tomcat server is listening on port 8080 (can't change to another one). Other services work fine. Restarting the application or computer didn't help.

英文:

I'm having trouble starting my Spring Boot application.

When I run it I get the following errors:

Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

Caused by: java.lang.IllegalArgumentException: standardService.connector.startFailed

Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed 

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

I work on Linux. Tomcat server is listening on port 8080 (can't change to another one). Other services work fine. Restarting the application or computer didn't help.

答案1

得分: 1

已经有一个在端口8080上运行并监听的进程。你可以用netstat命令来检查它。

如果你无法改变你的应用程序的端口,那么唯一的选择就是终止其他进程。你可以用以下命令获取进程号:

netstat -nap | grep 8080
英文:

There is already a process running and listening on port 8080. You can check it with the command netstat.

If you can't change the port of your application then the only option would be to kill the other process. You can get the process number with this command:

netstat -nap | grep 8080

huangapple
  • 本文由 发表于 2023年5月13日 23:53:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76243655.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定