Apache在重新启动后运行,但不工作

Apache在重新启动后运行,但不工作,apache,configuration,bind,reboot,Apache,Configuration,Bind,Reboot,我在Ubuntu上运行Apache,它运行得很好。但是,如果我发出“shutdown-rnow”并等待服务器成功启动,则该网站将不会显示在浏览器中。 然后,如果我发出:service apache2 start,它将显示: [Thu Jun 14 11:08:38 2012] [error] (EAI 2)Name or service not known: Could not resolve host name *.443 -- ignoring! [Thu Jun 14 11:08:38 2

我在Ubuntu上运行Apache,它运行得很好。但是,如果我发出“shutdown-rnow”并等待服务器成功启动,则该网站将不会显示在浏览器中。 然后,如果我发出:service apache2 start,它将显示:

[Thu Jun 14 11:08:38 2012] [error] (EAI 2)Name or service not known: Could not resolve host name *.443 -- ignoring!
[Thu Jun 14 11:08:38 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/default2 at line 18 will probably never match because it overlaps an earlier ScriptAlias.
[Thu Jun 14 11:08:38 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/default2 at line 34 will probably never match because it overlaps an earlier Alias.
[Thu Jun 14 11:08:38 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 * Starting web server apache2                                                      FAIL
[Thu Jun 14 11:09:34 2012] [error] (EAI 2)Name or service not known: Could not resolve host name *.443 -- ignoring!
[Thu Jun 14 11:09:34 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/default2 at line 18 will probably never match because it overlaps an earlier ScriptAlias.
[Thu Jun 14 11:09:34 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/default2 at line 34 will probably never match because it overlaps an earlier Alias.
[Thu Jun 14 11:09:34 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
 * Stopping web server apache2              OK
但是,当我发布服务apache2 stop时,它将显示:

[Thu Jun 14 11:08:38 2012] [error] (EAI 2)Name or service not known: Could not resolve host name *.443 -- ignoring!
[Thu Jun 14 11:08:38 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/default2 at line 18 will probably never match because it overlaps an earlier ScriptAlias.
[Thu Jun 14 11:08:38 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/default2 at line 34 will probably never match because it overlaps an earlier Alias.
[Thu Jun 14 11:08:38 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 * Starting web server apache2                                                      FAIL
[Thu Jun 14 11:09:34 2012] [error] (EAI 2)Name or service not known: Could not resolve host name *.443 -- ignoring!
[Thu Jun 14 11:09:34 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/default2 at line 18 will probably never match because it overlaps an earlier ScriptAlias.
[Thu Jun 14 11:09:34 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/default2 at line 34 will probably never match because it overlaps an earlier Alias.
[Thu Jun 14 11:09:34 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
 * Stopping web server apache2              OK
然而,后来netstat-tulpn | grep:80仍然显示:

tcp6       0      0 :::80                   :::*                    LISTEN      23561/apache2 
无论如何,当我刚刚终止上面显示的进程时,例如kill-923561,我可以使用apache2start服务成功启动apache2,并在浏览器中再次查看我的网站。所以,对我来说,似乎有另一款apache2运行时使用了完全不同的配置。顺便说一句,我已经保证我只有一个apache2安装。
你能帮我解决这个问题吗?非常感谢!!!:-)

如果你能发布你的配置文件,那会很有帮助。关于“*.443”的警告与此有关。可能是在某个地方,您将它引入了虚拟主机配置,这会扰乱apache的启动过程。