Shut down specified port service under Windows to resolve Tomcat port occupancy issues

Source: Internet
Author: User

http://blog.aizhet.com/Server/640.html

In the development of Java EE under Windows, build eclipse+tomcat Java Web Development environment, often encounter tomcat in the application Restart service, port occupancy problem, cause unable to start the service;

Error message:

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost is already in use. The server may already is running in another process, or a system process could be using the port. To start this server you'll need to stop the other process or change the port number (s).

Analysis Reason: Is the current port 8080 is occupied, so restart the service for the occurrence of port occupancy error;

Solution:

The end of the current consumption of 8080 port services can be;

1: Start----Run-----cmd-------input netstat-abn
2: Among the results, it was found that the program name occupied by port 8080 is Javaw.exe

3: Open Task Manager----process----End process Javaw.exe;

4: Then restart the Tomcat server;

How to close a program process for a specified port

Operation-First find out the port corresponding program process PID---According to the PID to find the program name----according to the process name end process, release the port;

1:netstat-abn|findstr "8080" queries the PID of the specified port occupancy program

2:tasklist|findstr "180" View the program name of the process with PID 180

3:taskkill/f/t/im Javaw.exe forced end of a program that occupies 8080 ports javaw.exe

Shut down specified port service under Windows to resolve Tomcat port occupancy issues

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.