Apache错误:地址已在使用中:make_sock:无法绑定到地址[::]:443

问题描述:

启动时出现Apache错误:

Apache error while starting:

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文件中出现以下错误:

Also getting the following error in error_log file:

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

预先感谢

  1. 在conf.d中定义的文件在多个文件中的监听端口将多次被设置为443,这可能会导致此问题.
  2. 似乎端口443被其他进程使用,可以通过"netstat -anp | grep:443"进行检查