启动httpd时服务名不是apacha2.4
启动时应加上服务名
httpd -k start -n 服务名
方法1:查找端口占用
Html代码
D:\server\xampp\apache\bin> netstat -ano|findstr “443”
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 6636
TCP 199.10.33.30:54312 202.173.27.250:443 TIME_WAIT 0
TCP 199.10.33.30:54313 216.219.120.244:443 TIME_WAIT 0
查看进程占用程序
Html代码
D:\server\xampp\apache\bin>tasklist|findstr “6636”
vmware-hostd.exe 3120 Services 0 55,356 K
可见433由vmare占用,根据“先来后到”的原则,那么只有更改apache的这个端口了。
解决方法
进入Apache的安装目录,搜索httpd-ssl.conf,右击文本打开。寻找443替换成其他不常用的端口号,比如442。接下来就可以正常启动Apache了。//该方法本人使用不行,改了两个httpd-ssl.conf这个文件好像没有用。
方法2:直接关闭Apache的SSL模块, 反正暂时还用不到,\xampp\apache\confhttpd.conf文件,注释171行#LoadModule ssl_module modules/mod_ssl.so 和539行#Include conf/extra/httpd-ssl.conf//该方法有用