What should I do if the Tomcat port is occupied?

Source: Internet
Author: User

All those who study web design will use tomcat. During installation, we usually select port 8080, which is usually not occupied by programs, so we won't have any problems when running tomcat, but if we don't use it, our tomcat won't be able to start. This experience will share with you how to solve this problem.

Tools/Raw Materials
  • Tomcat

Detect the port in use
  1. Here we will take win7 as an example to explain.

    Open cmd first. The method is very simple. Just enter it in the Start Menu. You can also press win + R to start running, and then enter cmd.

  2. Enter the following command in the doscommand to query the port number being used and the program using it.

    Command: netstat-ano

  3. Content Analysis:

    The process occupied by the previous program, followed by the colon is the port we are looking. Find 8080, because my solution has been solved, so the picture here cannot be for everyone.

  4. We can see that there is a PID next to it, and then write down the PID that occupies port 8080.

  5. Right-click the character bar and choose task manager.

  6. Click Select in the menu bar-display the previous button. Then, the tab is displayed in the process column. You can see the PID used by the program.

  7. Find the process that occupies port 8080 that you just queried and it will be OK after it is finished.


What should I do if the Tomcat port is occupied?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.