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

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

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

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

    Html代码  收藏代码
    1. D:\server\xampp\apache\bin>netstat -ano|findstr "443"  
    2.   TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       3120  
    3.   TCP    199.10.33.30:54312     202.173.27.250:443     TIME_WAIT       0  
    4.   TCP    199.10.33.30:54313     216.219.120.244:443    TIME_WAIT       0  

    查看进程占用程序

    Html代码  收藏代码
    1. D:\server\xampp\apache\bin>tasklist|findstr "3120"  
    2. vmware-hostd.exe              3120 Services                   0     55,356 K  

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

    解决方法
    进入Apache的安装目录,搜索httpd-ssl.conf,右击文本打开。寻找443替换成其他不常用的端口号,比如442。接下来就可以正常启动Apache了。
     
原文地址:https://www.cnblogs.com/58top/p/2975770.html