今天开电脑,打开XAMPP,突然appach启动不了了。昨天还好好的,很是郁闷!
找了一下原因如下:
打开Aapche的日志文件error.log。发现有如下的错误日志记录
[Thu Jan 09 16:30:00 2014] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 09 16:30:00 2014] [notice] Digest: done
[Thu Jan 09 16:30:04 2014] [notice] Child 8228: Child process is running
[Thu Jan 09 16:30:04 2014] [notice] Child 8228: Acquired the start mutex.
[Thu Jan 09 16:30:04 2014] [notice] Child 8228: Starting 150 worker threads.
[Thu Jan 09 16:30:04 2014] [notice] Child 8228: Starting thread to listen on port 443.
[Thu Jan 09 16:30:04 2014] [notice] Child 8228: Starting thread to listen on port 8090.
[Thu Jan 09 16:30:04 2014] [notice] Child 8228: Starting thread to listen on port 8080.
[Thu Jan 09 16:30:04 2014] [notice] Child 8228: Starting thread to listen on port 80.
[Thu Jan 09 17:40:00 2014] [notice] Parent: child process exited with status 1073807364 -- Restarting.
是不是昨天弄了什么东西把443端口给占了。
通过cmd命令行直接查看有无程序占用0.0.0.0:443:
1、运行cmd,然后输入netstat -ano,回车;
2、查看开头几行包含0.0.0.0:443的那一行最后的pid,为几个数字,把这几个数字记下来;
3、启动“任务管理器”——“进程”,在“工具栏查看选项卡”——“选择列”前面的框里打上勾;
4、然后找到与刚才那个pid对应的是哪个程序,很容易就会找到,就是它与0.0.0.0:443进行了绑定(bind);
原来是我昨天安装了VMware Workstation 把443端口占了。
杀掉进程,或者改掉443端口就可以了