How can I check whether port 80 of IIS is occupied?

Source: Internet
Author: User
Tags fully qualified domain name

(Reprinted below)
Start -- run -- cmd enter the command prompt and enter netstat-ano. Then you can see all connected PIDs and find the corresponding PID in the task manager.ProgramIf no PID exists in the task manager, select "View"-"Select column" in the task manager"

Often, when we start an application, we find that the ports required by the system are occupied by other programs. How do we know who owns the ports we need, next we will introduce a very simple method and hope it will be useful to you.

If we need to determine who is using port 80

1. Windows Platform
Run the following command in the Windows command line window:
C: \> netstat-Aon | findstr "80"
TCP 127.0.0.1: 80 0.0.0.0: 0 listening 2448
As you can see, the port is occupied by a process with the process number 2448. Continue to execute the following command:
C: \> tasklist | findstr "2448"
Thread.exe 2016 console 0 16,064 K
Well, thread occupies your port and kill it.
If you cannot find the process in step 2, open the task manager, check which process is 2448, and then kill it.
If you want to view other ports. Change 80.

Supplement: the original cause is: httpd.exe: cocould not reliably determine the server's fully qualified domain name, using 192.168.1.111 for servername. if you do not want to configure DNS, go to httpd. conf, add servername localhost: 80 at the beginning.

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.