View 80 port numbers to occupy Windows and Linux

Source: Internet
Author: User
Tags memory usage

1. How to view 80 port occupancy under Windows? Which process is occupied by? How to terminate.

Here is the main use of Windows under the DOS tool, click "Start"-"Run", enter "CMD" after the click on the OK button to enter the DOS window, and then run the following commands respectively:

>netstat-aon | Findstr "80"

Proto Local address Foreign address State PID

==== ============ ============== ========== ======

TCP 0.0.0.0:80 0.0.0.0:0 Listening 1688

You can see that port 80 is occupied by a process number 1688 program.

>tasklist | Findstr "1688"

Image name PID session name Session # Memory usage

========================= ====== ================ ======== ============

Inetinfo.exe 1688 Console 0 2,800 K

Obviously, the Inetinfo occupies 80 ports; Inetinfo.exe is primarily used to support debugging of Microsoft Windows IIS Network Services, which is important for your system to function properly.

Of course, it's not just the Inetinfo.exe process that takes up 80 ports, it's only on my machine. If you don't know what this process is for, do not kill it blindly, preferably Baidu or Google search; Of course, if you know it well and you're sure you can terminate it, Then continue with the following command.

>taskkill/pid 1688/f

Success: The process with PID 1688 terminated.

If you are familiar with this process and are determined to terminate it, then use the above command to terminate the PID 1688 process directly. (This step can also be performed in Task Manager, Inetinfo.exe is the image name in Task Manager, select it, and click "End Process")

>tasklist | Findstr "1688"

Re-confirm successful termination and return NULL if the execution command is successfully terminated.

2. How to view 80 port occupancy under Linux? Which process is occupied by? How to terminate etc

Query port is occupied, by which process is occupied by two ways: 1, netstat-anl | grep "80"; 2, lsof-i:80

How to terminate a process: Kill PID

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.