Home > Backend Development > PHP Tutorial > Solution to the problem that port 80 of Win10 system is occupied by System and Apache cannot start

Solution to the problem that port 80 of Win10 system is occupied by System and Apache cannot start

WBOY
Release: 2016-07-29 09:08:07
Original
1650 people have browsed it

Under the Windows 10 system, after installing XAMPP, Apache never started. It kept prompting that port 80 was occupied and no other software was started. Finally, after searching, I found out that the win10 system occupied port 80 by default.
How to modify?
Solution:

  1. Start cmd and enter regedit, open the registry;

  2. Find: HKEY_LOCAL_MACHINESYST EMCurrentControlSetservicesHTTP;

  3. Find the Start item on the right and change its value to 0;

  4. Restart the system , the System process will not occupy port 80;

  5. After restarting, just start Apache.

In addition, you can also use the cmd command to check whether the computer port is occupied. Take port 80 as an example:

  • Start cmd and enter netstat -aon|findstr :80, 80 means you want to check port number.

  • You can see 0.0.0.0:80 0.0.0.0:0 LISTENING 4, which means that a local program is listening on port 80.

  • To find out which program is occupying port 80, you can continue to enter in the cmd command: tasklist|findstr "4", 4 is the previous process ID;

  • You can find out which program is occupying port 80 port.

The above introduces the solution to the problem that port 80 of Win10 system is occupied by System and Apache cannot be started, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template