Windows queries the specified port process and kills

Source: Internet
Author: User
Tags vc9

1. Locate the process number for the specified port

C:\devworks\lib\httpd-2.4.10-win32-vc9\apache24\bin>netstat-ano|findstr "9000"  TCP    0.0.0.0:9000           0.0.0.0:0              LISTENING       4916  tcp    127.0.0.1:63189        127.0.0.1:9000         time_wait       0  TCP    127.0.0.1:63214        127.0.0.1:9000         time_wait       0  TCP    [::]:9000              [::]:0                 LISTENING       4916

2. Find the app that corresponds to the process number

C:\devworks\lib\httpd-2.4.10-win32-vc9\apache24\bin>tasklist | Findstr "4916" Javaw.exe                     4916 Console                    1    433,228 K

3. Kill Process

c:\devworks\lib\httpd-2.4.10-win32-vc9\apache24\bin>taskkill/f/t/im javaw.exeSUCCESS:The process with PID 4916 ( Child process of the PID 6480) has been terminated.

Windows queries the specified port process and kills

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.