zoukankan      html  css  js  c++  java
  • apache启动错误 AH00072


    错误描述:


    make_sock: could not bind to address [::]:443

    G:Apache24in>httpd.exe -w -n "Apache2.4" -k start
    (OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : AH00072: make_sock: could not bind to address [::]:443
    (OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : AH00072: make_sock: could not bind to address 0.0.0.0:443
    AH00451: no listening sockets available, shutting down


    根据错误提示,应该是端口被占用:

    1:查找端口占用

    C:Usersheliang>netstat -ano | findstr "443"

     2.查看进程占用程序

    C:Usersheliang>tasklist | findstr "4124"
    VisualSVNServer.exe           4124 Services                   0      5,264 K

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

    解决方法
    进入Apache的安装目录,搜索443,修改为444(或者其他可用端口)。

    (我这里借用了subLime text来搜索文本中的433的。Apache24压缩文件放在我电脑的G盘)

    我本地需要修改的文件如下:

    G:Apache24confextrahttpd-ahssl.conf
    G:Apache24confextrahttpd-ssl.conf
    G:Apache24conforiginalextrahttpd-ssl.conf
    G:Apache24logsinstall.log

    接下来就可以正常启动Apache了。

    启动 Apache
    httpd.exe -w -n "Apache2.4" -k start 
    
    停止 Apache
    httpd.exe -w -n "Apache2.4" -k stop 
    
    重启 Apache
    httpd.exe -w -n "Apache2.4" -k restart

    ### 请将cmd窗口路径切换到在Apache的bin目录,然后执行bash命令。

    例如,我这里把Apache24解压出来放在了G盘。需要进入 G:Apache24in   以管理员权限执行运行Apache的命令。

  • 相关阅读:
    Webx5 label的取值和赋值(div)
    webx5 复选框的显示
    WebX5 Data遍历以及获取数组最后一个元素(更新)
    API集市--分享API
    WebX5 Data判断当前行的值是否改变,以及改变当前行的状态
    WebX5手机GPS定位,无需开启网络
    JS:var 变量=变量 && 变量
    jQuery的ready ()的几种写法
    .net 微信支付(公众号支付)遇到的问题
    .net中的Dictionary字典类的使用方法
  • 原文地址:https://www.cnblogs.com/music-liang/p/11845975.html
Copyright © 2011-2022 走看看