【问题标题】:Apache error: Address already in use: make_sock: could not bind to address [::]:443Apache 错误:地址已在使用中:make_sock:无法绑定到地址 [::]:443
【发布时间】:2018-03-20 12:08:06
【问题描述】:

Apache 启动时出错:

Address already in use: make_sock: could not bind to address [::]:443

*Executing start method ("/lib/svc/method/http-apache2 start") ]
(125)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs*

Listen 443 is added in ssl.conf.
Listen 80 is added in httpd.conf.

HTTPD.conf 文件:

DocumentRoot "/var/apache2/htdocs"
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
<Directory "/var/apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

error_log 文件中也出现以下错误:

configuration error:  couldn't perform authentication. AuthType not set!:index.html**
index.html's location : /var/apache2/htdocs

提前致谢

【问题讨论】:

    标签: apache ssl https apache2 httpd.conf


    【解决方案1】:

    我不得不注释掉

    听 443 https

    在 /etc/.../conf.d/ssl.conf 中升级到 httpd 版本 2.4.6-80

    【讨论】:

      【解决方案2】:
      1. 在 conf.d 中定义的文件会在多个文件中多次将侦听端口设为 443,这可能会导致此问题。
      2. 好像443端口被其他进程占用了,可以通过“netstat -anp|grep :443”查看

      【讨论】:

        【解决方案3】:

        监听端口后添加以下行

        #You will have 
            Listen 443 https
        #add NameVirtualHost entry after that,
        NameVirtualHost *:443
        

        并重新启动 httpd 服务器,希望这对你有用。

        【讨论】:

        • 谢谢!但我再次收到以下错误:(125)地址已在使用中:make_sock:无法绑定到地址[::]:443没有可用的监听套接字,正在关闭 - 重新启动时,&配置错误:无法执行验证。 AuthType 未设置!:在错误日志文件中
        • 你用的是Linux系统吗?
        • 提供包含虚拟主机的整个配置文件。
        • 我用的是solaris系统
        猜你喜欢
        • 2014-07-10
        • 1970-01-01
        • 1970-01-01
        • 2018-12-05
        • 2012-02-26
        • 2016-11-11
        • 2012-12-25
        • 2017-05-17
        • 1970-01-01
        相关资源
        最近更新 更多