Win7 80 port is (pid=4) occupied by the workaround

Source: Internet
Author: User



The first way to introduce a common online approach is to find a process that takes up 80 ports and then close it.






1, run cmd, and then input netstat-a-n-o, enter;
2, look at the beginning of a few lines containing 0.0.0.0:80 of the last PID, for a few numbers, put these several numbers down;
3, start "Task Manager"-"process", in the "toolbar"-"Select column" box in front of the tick;
4, and then find the PID corresponding to which program, it is easy to find, that is, it is bound with the 0.0.0.0:80 (BIND);









End this process, then click on the Apache Start button, and finally the running appears.









But the above method does not apply to my situation. Because I can't find the pid=4 process, so another way.



The Win7 80 port is used by the system process by default.



You can use the following method to troubleshoot the system process consuming port 80:



Open regedit: Start-run-input regedit-bring up the Registry



Find Hkey_local_machine\system\currentcontrolset\services\http



Find a DWORD value start, change it to 0



Restart your computer, the system process will not consume 80 ports



You'll be able to open your Apache.









This method does temporarily solve my problem, it should be like this, but the back of the problem. Apache can't open it for no reason. So, finally found that the process has a SQL Server reportingservices, this is the SQL Servers with, and automatically run, close it, you can. But remember, this process may open automatically, so first open Apache, and then SQL Server ReportingServices run will not occupy port 80.






Query: To view information that occupies 80 ports, you can enter Netstat-ano | findstr "80" command in cmd window



Several common situations are:



1, Thunder and other programs or some other software with upload function will occupy the computer's 80 port



2,netstat-abno after viewing, after looking for the pid=4 system process, because it is a process, can not end it, by the SQL Server reportingservices (SQLEXPRESS) service occupies 80 ports After you stop SQL Server reportingservices, Apache starts normally.



3. Uninstall Internet Information Services and World Wide Web services. This is the most common failure, or some other third-party server software, must be in the process to end, only effect.



Note: The command to kill the process:taskkill/pid 4/f where/F means forcing the process to close



Win7 80 port is (pid=4) occupied by the workaround


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.