Apache 在 Ubuntu 上重启 - 错误“无法绑定到地址 0.0.0.0.80" [英] Apache restart on Ubuntu - error "could not bind to address 0.0.0.0.80"

查看:30
本文介绍了Apache 在 Ubuntu 上重启 - 错误“无法绑定到地址 0.0.0.0.80"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 n00b - 尝试在 Rackspace Cloud 上的 Ubuntu 9.10(Karmic Koala)上设置 apache2.我已经设置/配置了 OpenSSL 并安装了 Apache,但 Apache 无法启动.我假设它在我的/etc/apache2/sites-available/ssl 或/etc/apache2/sites-available/default 文件中配置错误)

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

我收到以下错误消息:

[错误] (EAI 2)名称或服务未知:无法解析主机名 *.80 -- 忽略![错误] (EAI 2)名称或服务未知:无法解析主机名 *.80 -- 忽略!(98)Address already in use: make_sock: could not bind to address 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/sites-available/ssl,我使用了 *:443 的虚拟主机.

For my /etc/apache2/sites-available/ssl I have used a virtual host of *:443.

对于我的/etc/apache2/sites-available/default 我使用了 *: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.

第二个解析很简单:将 ServerName localhost 添加到主配置.文件.

Second resolve is simply: Add ServerName localhost to main config. file.

这篇关于Apache 在 Ubuntu 上重启 - 错误“无法绑定到地址 0.0.0.0.80"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆