8080 port already taken issue when trying to redeploy project from Spring Tool Suite IDE

前端 未结 22 2573
梦毁少年i
梦毁少年i 2020-12-07 10:49

I have strange thing when I try to modify Spring project inside my Spring Tool Suite. On the first load (deploy) everything is fine, application compiles and runs on localho

22条回答
  •  离开以前
    2020-12-07 11:04

    For Mac users(OS X El Capitan):

    You need to kill the port that localhost:8080 is running on.
    To do this, you need to do two commands in the terminal :N

    sudo lsof -i tcp:8080
    
    kill -15 PID 
    

    NB! PID IS A NUMBER PROVIDED BY THE FIRST COMMAND.

    The first command gives you the PID for the localhost:8080.
    Replace the PID in the second command with the PID that the first command gives you to kill the process running on localhost:8080.

提交回复
热议问题