原因是win8下系統默認占用80端口,導致apache無法打開。
解決方法:
1.以管理員權限運行c:windowssystem32cmd.exe ;
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端口。