linux - 在 OpenSuse 13.1 上启动 Apache 2.4.6 时出错

标签 linux apache opensuse

当我尝试启动 apache 时,会发生这种情况:

Job for apache2.service failed. See ‘systemctl status apache2.service’ and ‘journalctl -xn’ for details.

system.ctl status apache2.service -l 返回我这个:

Mar 24 23:41:57 glauber-pc.site start_apache2[3249]: httpd2-prefork: Syntax error on line 179 of /etc/apache2/httpd.conf: Syntax error on line 102 of /etc/apache2/default-server.conf: Syntax error on line 1 of /etc/apache2/conf.d/mod_evasive.conf: Cannot load /usr/lib64/apache2/mod_evasive20.so into server: /usr/lib64/apache2/mod_evasive20.so: cannot open shared object file: No such file or directory
Mar 24 23:41:57 glauber-pc.site systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
Mar 24 23:41:57 glauber-pc.site systemd[1]: Failed to start The Apache Webserver.
Mar 24 23:41:57 glauber-pc.site systemd[1]: Unit apache2.service entered failed state.

一切看起来都是对的,有什么线索吗?

最佳答案

更改第一行

/etc/apache2/conf.d/mod_evasive.conf

LoadModule evasive20_module/usr/lib64/apache2/mod_evasive24.so

(...24.so 而不是 ...20.so)

关于linux - 在 OpenSuse 13.1 上启动 Apache 2.4.6 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22624678/

相关文章:

java - 如何在 opensuse 上连接到 mysql localhost?

c++ - 您在软件中写入日志以处理可能的大量日志消息的策略是什么?

linux - 在 PowerShell 中使用 New-SshSession(使用私钥)远程登录 Linux 失败并显示 "Invalid private key file"

regex - sed 用正则表达式替换 bbcodes

linux - 如何检测文件系统是否支持权限?

perl - 如何在 mod_perl 中添加脚本特定的库路径?

python - 如何诊断Apache2.4服务错误7024 Incorrect function

mongodb - 27017 浏览器无法访问 MongoDB

python - 访问Django的request.body慢

java - OpenSuse Linux 上的 Intellij Idea