Apache的443端口被占用解决方法

转自:http://www.xuebuyuan.com/228060.html

今天使用xampp,apache无法启动,由于使用xampp-control-3-beta.exe无法看到错误,就是无法启动。

 

windows用cmd,执行xampp/apache/bin中的httpd.exe,看到:

(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : make_sock: c 
ould not bind to address [::]:443 
查找端口占用

 
D:\server\xampp\apache\bin>netstat -ano|findstr "443" 
  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       3120 
  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 "3120" 
vmware-hostd.exe              3120 Services                   0     55,356 K 
 

可见433由vmare占用,根据“先来后到”的原则,那么只有更改apache的这个端口了。

解决方法
进入Apache的安装目录,搜索httpd-ssl.conf,右击文本打开。寻找443替换成其他不常用的端口号,比如442。接下来就可以正常启动Apache了。

posted on 2015-03-13 19:51  ziyi_ang  阅读(283)  评论(0编辑  收藏  举报

导航