How to view the PID process number and the corresponding port number

Source: Internet
Author: User
What if the port is occupied? Here are some tips for Win7 system to quickly see how the port is occupied.

1. First, press the WIN+R key, input cmd.

2. Enter Netstat-aon|findstr **,** in the cmd window to indicate the port number you want to view. The NETSTAT-AON|FINDSTR 80 is an example of a small series.

3. From the following figure can be seen that a program in the occupied 80 ports, see the rightmost has the process of possession of this program id:5264;



4. Know the process ID, we only need to find out which program is 5264, continue to enter the following command: Tasklist|findstr "5264", 5264 is the previous process ID.



5. Now we know which program occupies the port and can take the corresponding processing strategy.

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.