启动时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

提前致谢

最佳答案

  • 在 conf.d 中定义的文件会在多个文件中多次将监听端口设为 443,这可能会导致此问题。
  • 似乎端口 443 被其他进程使用,可以通过“netstat -anp|grep :443”进行检查
  • 关于Apache 错误:地址已在使用中:make_sock:无法绑定(bind)到地址 [::]:443,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46643780/

    10-09 22:22