Queries the PID of the port used and the corresponding process name in windows.

Source: Internet
Author: User
For Windows, query the PID of the port used and the corresponding process name.

Port 8080 is often occupied for no reason when the project is to be implemented. After a long time, I am familiar with the problem and I will record it here.

Enter the number line: netstat-ano. Obtain the following. It is clear that the PID is 5616 and occupies port 8080.

Then enter the tasklist command to query the processes corresponding to all the PIDs, for example:

Finally, find the corresponding process and stop it in the task manager.

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.