Apache error: Address already in use: make_sock: could not bind to address [::]:443
Apache error: Address already in use: make_sock: could not bind to address [::]:443
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
提前致谢
在侦听端口后添加以下行
#You will have
Listen 443 https
#add NameVirtualHost entry after that,
NameVirtualHost *:443
并重新启动 httpd 服务器,希望这对您有用。
- conf.d 中定义的文件在多个文件中多次使用 443 监听端口,这可能会导致此问题。
- 似乎端口 443 被其他进程使用,可以通过 "netstat -anp|grep :443"
检查
我不得不注释掉
Listen 443 https
in /etc/.../conf.d/ssl.conf 升级到 httpd 版本后 2.4.6-80.
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
提前致谢
在侦听端口后添加以下行
#You will have
Listen 443 https
#add NameVirtualHost entry after that,
NameVirtualHost *:443
并重新启动 httpd 服务器,希望这对您有用。
- conf.d 中定义的文件在多个文件中多次使用 443 监听端口,这可能会导致此问题。
- 似乎端口 443 被其他进程使用,可以通过 "netstat -anp|grep :443" 检查
我不得不注释掉
Listen 443 https
in /etc/.../conf.d/ssl.conf 升级到 httpd 版本后 2.4.6-80.