无法重新启动我的httpd服务

我只是改变了我的PHP.ini文件。 (我的Linux dist是CentOS)。 我想我需要重新启动Apache的生效,所以我发出了命令:

服务httpd重启

当这样做,我得到这个错误。

Stopping httpd: [FAILED] Starting httpd: httpd: Syntax error on line 196 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_file_cache.so into server: /etc/httpd/modules/mod_file_cache.so: cannot open shared object file: No such file or directory 

我不太熟悉Linux,所以我不知道下一步该怎么做。

从你发布的评论看来,Apache无法加载conf告诉它导入的mod_file_cache.so模块。 据我所知,某些版本的RHEL / CentOS在默认情况下并没有包括这个版本。 尝试使用行开头的#进行评论。 否则,请尝试使用模块重buildApache。