在Ubuntu阿帕奇启动 - 错误"无法绑定解决0.0.0.0.80" [英] Apache restart on Ubuntu - error "could not bind to address 0.0.0.0.80"
问题描述
我是一个的n00b - 试图让Apache2的设置上Rackspace的云Ubuntu 9.10的(业报考拉)。我已经建立了/配置OpenSSL和Apache安装,但是Apache将无法启动。我认为它是一个错误配置在我的/ etc / apache2的/网站的可用/ SSL或/ etc / apache2的/网站的可用/默认文件)
I'm a n00b - trying to get apache2 set up on Ubuntu 9.10 (Karmic Koala) on Rackspace Cloud. I have set up/configured OpenSSL and installed Apache, but Apache won't start. I assume its a misconfiguration in my /etc/apache2/sites-available/ssl or /etc/apache2/sites-available/default files)
在我尝试使用以下命令重新启动Apache:
When I try to restart apache using the command:
sudo /etc/init.d/apache2 restart
我收到以下错误信息:
I get the following error message:
[错误](EAI 2)名称或服务不知道:无法解析主机名* 0.80 - 无视!
[错误](EAI 2)名称或服务不知道:无法解析主机名* 0.80 - 无视!
make_sock::(98)已在使用地址无法绑定解决0.0.0.0:80
没有听插座可用,关停
无法打开日志
...失败!
[error] (EAI 2)Name or service not known: Could not resolve host name *.80 -- ignoring! [error] (EAI 2)Name or service not known: Could not resolve host name *.80 -- ignoring! (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 ...fail!
有关我的/ etc / apache2的/网站的可用/ SSL我用*的虚拟主机:443。
For my /etc/apache2/sites-available/ssl I have used a virtual host of *:443.
有关我的/ etc / apache2的/网站的可用/默认我用的虚拟主机*:80
For my /etc/apache2/sites-available/default i have used a virtual host of *:80
推荐答案
关闭Skype的。它使用端口号80传入的消息。最终检查使用何种使用此端口的时刻的netstat
。
Turn off Skype. It's use port number 80 for incoming messages. Eventually check what use this port at the moment using netstat
.
其次决心很简单:服务器名称本地主机
添加到主配置。文件中。
Second resolve is simply: Add ServerName localhost
to main config. file.
这篇关于在Ubuntu阿帕奇启动 - 错误"无法绑定解决0.0.0.0.80"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!