How to kill a port-consuming process in a Windows system

Source: Internet
Author: User
Tags port number

Start Tomcat, the console error, found that the port is occupied, so look for methods to close the corresponding program.

Looking for a long time from the Internet, after trying to find no. Start your own attempt, and finally, successfully kill the process that takes up the port. The procedure is recorded here (for example, 8081 ports):

The first step is to find the corresponding process number based on the port number

Netstat-ano | FINDSTR 80//lists the ports that are extremely occupied by the process and contains 80

The results are as follows:

The 8081 port was found to be occupied by the PID (process number) 2000 process.

The second step, according to the process number to find the process name

tasklist | FINDSTR 2000

Find the program from Task Manager and kill it manually.

At this point, it has been completed.

However, I found that the program could not be found in Task Manager. We have to obey the order to kill the program, the order is as follows:

Taskkill-pid < process number >-f//force shutdown of a process

So you can.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/xp/

Related Article

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.