Windows lower Port occupation workaround-View and kill the occupied port process

Source: Internet
Author: User

When you start a program under Windows, you sometimes encounter the port is occupied, because a port can only run a process, so to start a new program will first take the process of the port to kill, the specific command is divided into the following three steps,

To kill a process that occupies 80 ports, for example:

1. Find the process number according to the port number "80"
Netstat-ano|findstr "80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 7796


2. Find the process name according to the process number "7796"
Tasklist|findstr 7796
Java.exe 7796 Console 1 57,368 K


3. Kill the process according to the process name
taskkill/f/t/im Java.exe
Success: The process of PID 7796 (which belongs to the PID 9052 child process) has been terminated.

Source: http://blog.csdn.net/rchm8519/article/details/49991805

Windows lower Port occupation workaround-View and kill the occupied port process

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.