解决win8下XAMPP中Apache模块无效问题的方法是什么?

解决win8下XAMPP中Apache模块无效问题的方法是什么?

windows 2024-02-05 17:59:02 1年以前

解决win8下xampp中apache模块无效的方法是什么

解决win8下xampp中apache模块无效的方法

由于win8系统默认占用了80端口,这会导致apache无法正常打开。

以管理员权限运行"cmd.exe"位于 "C:\Windows\System32" 路径中。

C:WINDOWSsystem32>net stop http

HTTP Service 服务已成功停止。

C:WINDOWSsystem32>netstat -ano | findstr 0.0.0.0:80

C:WINDOWSsystem32>sc config http start=disabled

[SC] ChangeServiceConfig 成功

打开注册表:win+r键 输入regedit

找到:HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesHTTP

在右边找到Start这一项,将其改为0

重启系统,System进程将不会再占用80端口

win8下 xampp无法启动apache

原因是由于win8系统默认占用了80端口,这会导致apache无法正常打开。

解决方法:

1.以管理员权限运行"cmd.exe"位于 "C:\Windows\System32" 路径中。 ;

2.C:WINDOWSsystem32>net stop http ;

3.HTTP Service 服务已成功停止;

4.C:WINDOWSsystem32>netstat -ano | findstr 0.0.0.0:80 ;

5.C:WINDOWSsystem32>sc config http start=disabled ;

6.[SC] ChangeServiceConfig 成功 ;

7.打开注册表:win+r键 输入regedit ;

8.找到:HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesHTTP;

9.在右边找到Start这一项,将其改为0 ;

10.重启系统,System进程将不会再占用80端口。

文章版权声明:除非注明,否则均为网络转载文章,转载或复制请以超链接形式并注明出处。