zoukankan      html  css  js  c++  java
  • Apache shutdown unexpectedly启动错误解决方法

    这个问题比较常见, 通常是80、443端口被占用 

    cmd 通过运行apache/bin/httpd.exe 打印如下log: 

    (OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: could not bind to address 0.0.0.0:443 
    或者后面是80端口被占用

    (OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: could not bind to address 0.0.0.0:80  或[ : : ]:80 

    一、最快的处理方法就是修改端口号:

    1、443端口被占用,apache无法监听443端口

    在/xampp/apache/conf/extra/httpd-ssl.conf 

    把Listen 443 修改为 444(可自定义)


    2、80
    端口被占用,apache无法监听80端口

    在/xampp/apache/conf/extra/httpd.conf 

    把Listen 80 修改为 8090

    如果配置了vhosts的话请把httpd-vhosts.conf 中端口改为8090(同上端口号)


    二、最直接的方法是关闭占用80、443端口的进程: 
    1. 通过cmd中netstat -ano 看看本机80、 443端口被占用没       
    2.通过cmd中打印tasklist,查找占用80、443端口的进程名称。 
    3.taskkill /pid 端口号 杀掉此进程名称,XAMPP重启apache即可。

    综上所述第一种方法推荐使用,第二种每次启动都或多或少的再次遇到。

    这个人不懒,写了一点东西
  • 相关阅读:
    markdown syntax
    solidity_mapping_implementation
    paramiko 模块安装和使用
    检测服务运行的脚本
    系统非正常关机启动后出现:an error occurred during the file system
    bacula 备份恢复
    socket 网络编程
    Python 8 协程/异步IO
    Linux系统通过console口连接交换机
    Python 7 多线程及进程
  • 原文地址:https://www.cnblogs.com/AnonymouL/p/5449515.html
Copyright © 2011-2022 走看看