当我尝试启动 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/