英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论