关于PHPstudy中Apache无法正常启动的解决方案

关于PHPstudy中Apache无法正常启动的解决方案

笔者在使用PHPstudy时出现了Apache无法正常启动的情况。如下图
关于PHPstudy中Apache无法正常启动的解决方案
关于PHPstudy中Apache无法正常启动的解决方案
经排查发现是以下服务占用了80端口,导致Apache端口被占用从而无法正常工作。(在服务中打开该界面。win+R 输入services.msc打开)
关于PHPstudy中Apache无法正常启动的解决方案
将该服务关闭后恢复正常。
关于PHPstudy中Apache无法正常启动的解决方案
关于PHPstudy中Apache无法正常启动的解决方案

附:排查方法
  1. win+R,输入 cmd,打开命令行窗口

  2. 命令行输入netstat -ano

  3. 找到80端口及对应进程
    关于PHPstudy中Apache无法正常启动的解决方案

  4. 输入 tasklist|findstr “4” , 查找此PID对应的应用程序,得到system
    关于PHPstudy中Apache无法正常启动的解决方案
    当然,这只是一种排查方法,不代表最后解决方案。