Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Web服务器无法启动,端口10086已在IntelliJ IDEA 2021中使用_Java_Spring Boot_Intellij Idea - Fatal编程技术网

Java Web服务器无法启动,端口10086已在IntelliJ IDEA 2021中使用

Java Web服务器无法启动,端口10086已在IntelliJ IDEA 2021中使用,java,spring-boot,intellij-idea,Java,Spring Boot,Intellij Idea,Web服务器无法启动,端口10086已在IntelliJ IDEA 2021中使用。当我运行netstat-ano | findstr 10086时,终端中没有任何输出。这里怎么了? 有什么帮助吗 PS C:\Windows\System32> netstat -ano |findstr 10086 PS C:\Windows\System32> 控制台输出: *************************** APPLICATION FAILED TO START *****

Web服务器无法启动,端口10086已在IntelliJ IDEA 2021中使用。当我运行
netstat-ano | findstr 10086
时,终端中没有任何输出。这里怎么了? 有什么帮助吗

PS C:\Windows\System32> netstat -ano |findstr 10086
PS C:\Windows\System32>
控制台输出:

***************************
APPLICATION FAILED TO START
***************************

Description:

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

Action:

Identify and stop the process that's listening on port 10086 or configure this application to listen on another port.
 (LoggingFailureAnalysisReporter.java:40)

您可以使用server.port设置其他未使用的端口,如application.properties中所示


server.port=10087

您好,请确保您在控制台中键入的内容正确

不工作检查示例

如果不希望嵌入式服务器启动,只需在application.properties(或.yml)中设置以下属性:

资料来源:


如果您的应用程序确实是一个Web应用程序,那么您可以使用server.port属性(在应用程序的.properties/.yaml文件中,作为启动时的命令行参数等)轻松更改端口。

识别并停止在端口10086上侦听的进程,或者将此应用程序配置为在另一个端口上侦听。-还有什么要做?@ScaryWombat如何找到Windows上端口10086上正在侦听的进程?我用这个命令
netstat-ano | findstr 10086
在终端中没有得到任何输出。它不起作用。我必须重新启动操作系统。你不需要重新启动操作系统。您只需在更改端口后重新启动应用程序。我已更改端口以启动应用程序,但它仍会抛出已与新server.port一起使用的端口。可能操作系统或IntelliJ IDEA中有问题。您指定的端口已被其他进程使用。更改端口之前,请确保未使用该端口。您可以使用
netstat-ano | findstr:
  spring.main.web-application-type=none