80 ports are occupied, Apache cannot start, the ultimate solution

Source: Internet
Author: User

When you start Apache today, it always prompts for failure, very simply, using Netstat-ano to discover that 80 ports are occupied. As shown in the figure:


According to PID: View the process name of PID in Task Manager


Since it is system. Then the real system should not be returned.

But the process of other products of Microsoft is running.

"Note: I have ended the IIS ADmin service in the service Services.msc"

But in fact the IIS service is really not shutting down.

Port 80 is also occupied by IIS 7.5:

You then open IIS Manager.

Right-click---> Stop in the IIS root directory


Then in the back to continue running in CMD Netstat-ano found 80 ports are not occupied.

(If you also install other Microsoft products such as SQL, you can stop its service test (although SQL should not affect, because SQL will almost not use 80 port))


However, in some cases, the above approach still does not solve the problem;


Here's another way to do this:

Open: Run, enter "Regeidt", and open Registry Editor.


As shown in the diagram, expand it to the left (hkey_local_machine/system/currentcontrolset/services/http)


HTTP is below and needs to be dragged down. Then HTTP is selected. Once selected, we will see a strart file on the right, double-click.


Then change the value to "0" and click OK. Save


Then in the back to continue running in CMD Netstat-ano found 80 ports are not occupied.

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.