首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >systemd[1]:无法启动LSB: Apache2 web服务器

systemd[1]:无法启动LSB: Apache2 web服务器
EN

Stack Overflow用户
提问于 2016-02-01 04:01:06
回答 2查看 7.1K关注 0票数 0

我有一个运行在Debian 8 (Jessie)上的Apache Web (version 2.4.10)服务器。主要用作SVN仓库服务器。几个星期以来,它一直运行良好,突然,当我试图从Web浏览器列出SVN repos时,出现了一个内部错误,如下所示:

Apache Internal Error & Authentication

正如您所看到的,身份验证仍在正常工作。

我运行了以下两个命令: systemctl status apache2.service和journalctl -xn

commands

但这对我帮助不大,也许我漏掉了什么?我最近没有修改任何与Apache相关的配置文件(甚至没有修改任何其他配置文件):既没有修改主apache conf文件,也没有修改任何vHost conf文件。我尝试重新启动Apache,它确实重新启动了,但Web服务器仍然遇到内部错误。

error.log:

代码语言:javascript
复制
[Sun Jan 31 18:36:17.372502 2016] [core:notice] [pid 27449:tid 140087289513856] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 31 18:37:07.641329 2016] [mpm_event:notice] [pid 27449:tid 140087289513856] AH00491: caught SIGTERM, shutting down
[Sun Jan 31 18:38:31.156131 2016] [wsgi:warn] [pid 1049:tid 140557851056000] mod_wsgi: Compiled for Python/2.7.8.
[Sun Jan 31 18:38:31.156330 2016] [wsgi:warn] [pid 1049:tid 140557851056000] mod_wsgi: Runtime using Python/2.7.9.

[Sun Jan 31 18:38:31.157222 2016] [mpm_event:notice] [pid 1049:tid 140557851056000] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations

[Sun Jan 31 18:38:31.157241 2016] [core:notice] [pid 1049:tid 140557851056000] AH00094: Command line: '/usr/sbin/apache2'

[Sun Jan 31 19:21:39.401930 2016] [mpm_event:notice] [pid 1049:tid 140557851056000] AH00491: caught SIGTERM, shutting down

[Sun Jan 31 19:22:35.038612 2016] [wsgi:warn] [pid 1313:tid 139813423814528] mod_wsgi: Compiled for Python/2.7.8.

[Sun Jan 31 19:22:35.038672 2016] [wsgi:warn] [pid 1313:tid 139813423814528] mod_wsgi: Runtime using Python/2.7.9.

[Sun Jan 31 19:22:35.039592 2016] [mpm_event:notice] [pid 1313:tid 139813423814528] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations

[Sun Jan 31 19:22:35.039611 2016] [core:notice] [pid 1313:tid 139813423814528] AH00094: Command line: '/usr/sbin/apache2'

[Sun Jan 31 19:24:57.303622 2016] [mpm_event:notice] [pid 1313:tid 139813423814528] AH00491: caught SIGTERM, shutting down

[Sun Jan 31 19:26:20.336578 2016] [wsgi:warn] [pid 1050:tid 140178825381760] mod_wsgi: Compiled for Python/2.7.8.

[Sun Jan 31 19:26:20.336805 2016] [wsgi:warn] [pid 1050:tid 140178825381760] mod_wsgi: Runtime using Python/2.7.9.

[Sun Jan 31 19:26:20.337601 2016] [mpm_event:notice] [pid 1050:tid 140178825381760] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations

[Sun Jan 31 19:26:20.337617 2016] [core:notice] [pid 1050:tid 140178825381760] AH00094: Command line: '/usr/sbin/apache2'

[Sun Jan 31 19:31:24.663351 2016] [mpm_event:notice] [pid 1050:tid 140178825381760] AH00491: caught SIGTERM, shutting down

[Sun Jan 31 19:31:25.827873 2016] [wsgi:warn] [pid 1208:tid 139958437914496] mod_wsgi: Compiled for Python/2.7.8.

[Sun Jan 31 19:31:25.827919 2016] [wsgi:warn] [pid 1208:tid 139958437914496] mod_wsgi: Runtime using Python/2.7.9.

[Sun Jan 31 19:31:25.828655 2016] [mpm_event:notice] [pid 1208:tid 139958437914496] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations

[Sun Jan 31 19:31:25.828679 2016] [core:notice] [pid 1208:tid 139958437914496] AH00094: Command line: '/usr/sbin/apache2'

这会不会来自mod_wsgi正在运行的Python版本,该版本与mod_wsgi显然预期的有所不同?

EN

回答 2

Stack Overflow用户

发布于 2017-12-07 19:03:33

尝试两个命令blow:

代码语言:javascript
复制
sudo apt-get purge apache2 

sudo apt-get install apache2

然后使用systemctl status apache2检查apache的状态。

票数 0
EN

Stack Overflow用户

发布于 2021-03-23 21:29:27

这些命令解决了我的问题:

代码语言:javascript
复制
sudo apt-get remove apache2 

sudo apt-get install apache2

注意:如果你使用purge作为另一个答案,你应该重新设置所有的Apache配置,但是当你使用Apache时,它只会删除Apache的核心,安装之后你不需要更多的东西。

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

https://stackoverflow.com/questions/35118773

复制
相关文章

相似问题

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