What should I do if port 80 of apache is occupied by iis or other services?

Source: Internet
Author: User
Tags fully qualified domain name

How to modify port 80 in iis

If you want to modify iis to avoid using 80, you can find it in our iis manager, manage iis, and change 80 to 81.

Apache modifies the listening port as follows:

Open httpd. conf

Modify Listen 80 to L Second World Organization release isten 81

Apache can monitor more than one port at a time to implement multiple Http Services.

Just add a line like Listen 82.

Similarly, IIS can modify the default port to avoid conflict.

The modification method is similar

Open Administrative Tools> Internet Services Manager

Click Default Web Site (or another custom Site)-> right-click and select Properties

Click Web Site-> Advanced...

Modify the TCP Port to a valid value.

If port 80 is not occupied by the above two programs, we can refer to the following method to find out which service is occupied by port 80

If we need to determine who is using port 80

1. Windows Platform

In the windows command line window, organize the Second World and run the command:

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.