为什么在configurationSSL之后不重新启动apache?

我已经安装了apache2,然后将其configuration为使用SSL以下和本教程,当我尝试重新启动服务时出现问题,出现以下错误:

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down Unable to open logs 

netstat -anp | grep 443的输出 netstat -anp | grep 443只显示火狐听力和其他任何东西,我怎么能解决这个问题,并得到服务运行?

这是在443端口上运行其他服务时产生的。我们必须检查运行的服务是什么,然后closures,然后重新启动apache。 要检查在端口443上运行的服务,请使用以下命令

nmap localhost

我假设firefox连接到其他网站上的端口443,虽然你可以closures它,以避免混淆。

因此,如果没有其他进程正在侦听端口443,最可能的解释是您不小心configuration了apache来多次侦听端口443(也许一次使用特定的IP地址,而一次使用特定的IP地址,因此一次没有,因此为0.0.0.0)所以当Apache启动时,第一个绑定尝试成功,但第二个失败。

检查httpd.conf中的LISTEN指令以及httpd.conf包含的任何文件。