If you stop tomcat in Eclipse and then start it again, you will get an error message stating that the port is being used, or in the case of Spring boot, "The Tomcat connector configured to listen on port 8080 failed to start. The port may already. The message "be in use or the connector may be misconfigured." May appear on the Eclipse console. These errors occur when the tomcat process remains after stopping tomcat. Therefore, in order to start tomcat on the same port again, it is necessary to stop the tomcat process once. Here, we will explain three ways to stop the tomcat process. The following environment is assumed.
OS: macOS Mojave Eclipse version: Photon Release (4.8.0) tomcat8
--Stop the process in Activity Monitor.
--Check the PID of the process with the top command and exit.
> top | grep java
Then, the process of "java" is displayed, and the PID is displayed on the far left, so copy it. 3. Execute the following command.
> kill <Copyed PID>
--Specify the process name with the pkill command and exit.
> pkill java
that's all. I think that some people will fall in love with tomcat when it's just touched, so I hope it helps.