80端口被占用了怎么办

来源:3-3 Spring Boot常用配置Demo

shuaiyi

2020-05-16 16:08:02

80端口用不了

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-05-16 16:06:10.025 ERROR 13788 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

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

Description:

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

Action:

Identify and stop the process that's listening on port 80 or configure this application to listen on another port.


Process finished with exit code 1


写回答

1回答

好帮手慕小班

2020-05-16

同学你好,端口被占用,同学可以尝试在cmd窗口中使用如下命令,查看对应80端口的进程,然后关掉这个进程

查看对应的端口:

netstat -tunlp|grep 80

根据PID kill相关进程:

kill -9 PID

比如:

http://img.mukewang.com/climg/5ebfbfc8095a2bfb06190137.jpg

如果我的回答解决了你的疑惑,请采纳,祝学习愉快~

1

0 学习 · 8263 问题

查看课程