遇到錯誤:
........ .......... *************************** APPLICATION FAILED TO START *************************** Description: The Tomcat connector configured to listen on port 80 failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector's configuration, identify and stop any process that's listening on port 80, or configure this application to listen on another port. 09:40:18.163 [restartedMain] INFO o.q.c.QuartzScheduler - [shutdown,666] - Scheduler RuoyiScheduler_$_KING1578274815494 shutting down. 09:40:18.163 [restartedMain] INFO o.q.c.QuartzScheduler - [standby,585] - Scheduler RuoyiScheduler_$_KING1578274815494 paused. 09:40:18.164 [restartedMain] INFO o.q.c.QuartzScheduler - [shutdown,740] - Scheduler RuoyiScheduler_$_KING1578274815494 shutdown complete. 09:40:18.164 [restartedMain] INFO sys-user - [shutdownAsyncManager,62] - ====關閉后台任務任務線程池==== 09:40:18.166 [restartedMain] INFO sys-user - [shutdownEhCacheManager,75] - ====關閉緩存==== 09:40:18.180 [restartedMain] INFO c.a.d.p.DruidDataSource - [close,1928] - {dataSource-1} closed Process finished with exit code 1
出現問題的原因:
80端口被占用,上次運行的項目程序在關閉intellij idea時,沒有停止運行
解決方法:
1.打開cmd命令窗口 輸入如下指令查看所有端口和PID
netstat -ano
2.找到對應的端口對應的PID 輸入指令找到對應的進程
tasklist | findstr "10136"
3.殺掉該進程 再次啟動就OK啦
taskkill /f /t /im java.exe