View port usage in Windows and Linux and kill the corresponding process

Source: Internet
Author: User

Several times in different situations encountered need to view the port information and kill the corresponding process of the situation related parameters are always not recorded here after the review convenient

In Windows
To view information about a port being used
Netstat-ano|findstr "XXXX"
Kill off the corresponding process
taskkill/f/t/pid
Specific parameter information
Http://blog.163.com/[email protected]/blog/static/45190050200741222590/


In Linux
To view information about a port that is in use
sudo netstat-anp |grep port number
Explanation of specific parameters
http://world77.blog.51cto.com/414605/171320
Kill the corresponding process (forcibly terminate)
Kill–9 the corresponding PID
Http://www.cnblogs.com/wangkangluo1/archive/2012/05/26/2518857.html

View port usage in Windows and Linux and kill the corresponding process

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.