Apache enabled, Discovery 80 port occupied "resolved"

Source: Internet
Author: User

The previous time stopped Apache, the result is opened when found unable to open, 80 port is occupied, so win+r run cmd

Input Netstat-ano

You can see that port 80 is occupied by PID4, so open Task Manager-process-view, select column, check PID

You can see that PID 4 is occupied by NT kernel & System

I've been searching the internet for a long time to find a solution

http://www.cameroncooke.com/2009/01/25/ windows-7-uses-port-80-and-makes-it-impossible-to-install-apache-solution/comment-page-1/#comments

Original:

Translate as follows:

The process is HTTP. sys. It is the driver component of the HTTP API, the HTTP stack server. If the port is consumed by HTTP. SYS, some applications that are using HTTP. sys are running. This is why Apache is prevented from running because HTTP. SYS occupies port 80. We have provided an application mechanism to help control port sharing, but I need to investigate what special application is causing you to encounter this difficulty. If you can provide us with the output of the "Netsh http show servicestate" command, I can find out which application is using HTTP. sys. Before you disable HTTP. sys, follow these steps to run the command:

1. sc config HTTP stat = demand

2. Reboot

3. Run the command (Netsh http show servicestat) as Administrator

Before you use this command, you can disable HTTP. sys by following these steps:

1. net stop http

2. Sc Config http start= disabled

Then run the net stop HTTP

Press Y to determine

When running Sc config HTTP start= disabled

OK, now start Apache, you can start up.

Check out the Netstat-ano.

Found PID 4 takes up 445 ports

Apache enabled, Discovery 80 port occupied "resolved"

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.