The tomcat port number is occupied.

Source: Internet
Author: User

The tomcat port number is occupied.

Error cause:
Port 8080 is occupied by other applications!

I found a solution on the Internet, and said that javaw.exe was closed in the task management window. Some said that tomcat was shut down and the test was available in some scenarios.

The following is a solution taken from the articles in other blogs. I used a small black window and felt a little cool ~~~


Solution:
Step 1: run the command: netstat-ano
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0: 8080 0.0.0.0: 0 LISTENING 656
TCP 0.0.0.0: 8080 0.0.0.0: 0 LISTENING 656
It can be seen that the PID of the Process occupying port 8080 is 656
Step 2: run the command prompt Symbol: tasklist
Image name PID session name session # memory usage
========================================================== ======================================
TNSLSNR.exe 656 Console 0 8,992 K
Listen, the 80 port is occupied by tnslsnr.exe
Step 3: Use the task manager to stop tnslsnr.exe
Step 4: restart tomcat to start properly

This method allows you to know which application is occupying your port number. The only drawback is that I cannot remember the command line.

Then, if you cannot find out how to close the application that occupies your port number, you can restart your computer to test the availability.

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.