IDEA運行 tomcat時出現 Address localhost:8080 is already

使用IDEA運行 tomcat時出現 Address localhost:8080 is already in use,就很奇怪,我明明只有這一個程序呀,怎麼還會被佔用。後來想一想可能就是被其餘進程佔用了吧,怎麼處理呢
1.查看全部的機器端口的pidjava

netstat -ano

IDEA運行 tomcat時出現 Address localhost:8080 is already
2.找到正在使用8080的程序端口是8952
3.查找全部的程序的端口,但這樣會有不少,不方便人肉眼查找tomcat

tasklist

4.使用管道|過濾ide

tasklist |findstr "8952"

IDEA運行 tomcat時出現 Address localhost:8080 is already
5.原來是java.exe這個程序,關掉就行了
6.打開任務管理器,找到該程序,右鍵點擊結束任務
IDEA運行 tomcat時出現 Address localhost:8080 is already
7.從新運行tomcat就能夠了3d

相關文章
相關標籤/搜索