首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >升级到喘息之后,apache无法启动。

问升级到喘息之后,apache无法启动。
EN

Server Fault用户
提问于 2013-05-09 02:14:16
回答 2查看 4.5K关注 0票数 5

我已经从lenny升级到wheezy,现在apache无法启动:

代码语言:javascript
复制
# /etc/init.d/apache2 start                                                                                                                                                             
Starting web server: apache2[Wed May 08 19:01:08 2013] [crit] (22)Invalid argument: alloc_listener: failed to get a socket for (null)
Syntax error on line 17 of /etc/apache2/ports.conf:
Listen setup failed
Action 'start' failed.
The Apache error log may have more information.
 failed!

当然,ports.conf的第17行是正确的:

代码语言:javascript
复制
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

#NameVirtualHost *:80
#Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

它看起来与我正在运行的内核中不存在的一些内核调用有关:http://major.io/2009/08/14/fedora-11-httpd-alloc_侦听器-失败的套接字为空/

这是一个xen VPS,内核版本是2.6.26-AMD 64。到目前为止,我无法更新内核,因为提供程序需要进行部分更新。我已经发出请求了,但我不知道需要多长时间。

在我有机会更新内核之前,有没有办法让它工作呢?

EN

回答 2

Server Fault用户

回答已采纳

发布于 2013-05-09 10:29:36

您尝试过在ServerFault上找到的这个解决方案吗:

它即将在您的系统上重新安装libapr1。

干杯,

K.

票数 4
EN

Server Fault用户

发布于 2013-05-09 09:52:44

听安装失败

其他的东西已经在监听端口443 (可能是apache的旧版本?)。关闭它,apache的启动就会再次工作。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/506238

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档