启动apache:
win10
在apache/bin 目录下以管理员身份运行cmd
command line: httpd -k start
error: [mpm_winnt:error] [pid 14432:tid 568] (OS 2)系统找不到指定的文件。 : AH00436: No installed service named “Apache2.4”.
解决方法:
command line: httpd -k install
下一个问题:AH00072: make_sock: could not bind to address [::]:443
典型的端口占用
方法1:查找端口占用
netstat -ano |findstr “443”
查看进程占用程序pid
tastlist|findstr “5076”
可见433由vmare占用,根据“先来后到”的原则,那么只有更改apache的这个端口了
解决方法:
进入Apache的安装目录,搜索httpd-ssl.conf,右击文本打开。寻找443替换成其他不常用的端口号,比如442。接下来就可以正常启动Apache了。
方法2:直接关闭Apache的SSL模块, 反正暂时还用不到,\xampp\apache\confhttpd.conf文件,注释171行#LoadModule ssl_module modules/mod_ssl.so 和539行#Include conf/extra/httpd-ssl.conf