Tomcat start up error

后端 未结 4 2145
无人共我
无人共我 2021-02-13 14:42

I am getting the following error in the Catalina log file while starting Tomcat on Windows:

Sep 3, 2010 3:22:53 PM org.apache.catalina.startup.Catalina start
SEV         


        
4条回答
  •  旧时难觅i
    2021-02-13 15:32

    Another process is using that port (probably another Tomcat instance).

    If you don't want to use another port for your actual Tomcat instance, you need to kill that process.

    cmd

    • 1 line

      for /f "tokens=5" %a in ('netstat -ao ^| findstr 0.0.8080') do taskkill /pid %a
      

      or

    • 2 lines

      • get PID

        netstat -ao | findstr 0.0:8080
        

        you get something like this:

        TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       5180
        

        (the last value is the PID - use it in the following command)

      • kill process

        taskkill /pid 
        

提交回复
热议问题