search

Home  >  Q&A  >  body text

php - Tomcat startup port number always prompts that it is occupied, but port 8080 can be opened in the browser. How to solve this problem?

Tomcat startup port number always prompts that it is occupied, but port 8080 can be opened in the browser, how to solve the problem

< /p>

< /p>

世界只因有你世界只因有你2860 days ago694

reply all(9)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 13:12:32

    First kill the process of 8080 in the shell, and then start the debugging of the ide, that is, tomcat occupies the 8080 port.
    Starting debugging in the editor is equivalent to opening another tomcat process.

    reply
    0
  • 阿神

    阿神2017-05-16 13:12:32

    Maybe it’s because you have started many Tomcats. I’ve encountered this before, just kill it and start again

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 13:12:32

    The browser8080port can be opened, indicating that the system already has a Tomcat process running.
    This usually occurs on Tomcat installed using the installation package under Windows. You can refer to the following steps to handle it:

    • Command line inputservices.msc to start the local service manager

    • Find the Apache Tomcat service, double-click to change the startup type to 手动 in the pop-up window, and click to stop at the same time

    • Try to start Tomcat in IDE

    reply
    0
  • 某草草

    某草草2017-05-16 13:12:32

    Kill the processes occupying ports 8005 and 8009 as well

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 13:12:32

    It may be opened multiple times, so this process already exists. You can enter netstat -ano in cmd to find the process occupying the port, then write down the process number, and then taskkill

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 13:12:32

    The easiest way is to restart the computer. Although it seems stupid

    reply
    0
  • 为情所困

    为情所困2017-05-16 13:12:32

    The tomcat service should be started by default when booting. Then if you restart it manually, the port should conflict

    reply
    0
  • 迷茫

    迷茫2017-05-16 13:12:32

    1. Turn off eclipse
    2. Find java.exe in the task manager and close it all
    3. Re-open eclipse and start tomcat

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:12:32

    Both cannot be used at the same time. Unless using a different port.

    reply
    0
  • Cancelreply