【发布时间】:2016-12-06 07:51:43
【问题描述】:
我想重启 httpd aws ec2 linux。我在终端中编写以下命令。
sudo service httpd restart
但它给了我以下错误。
Starting httpd: AH00526: Syntax error on line 18 of /etc/httpd/conf.d/ssl.conf:
Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
Starting httpd: AH00526: Syntax error on line 23 of /etc/httpd/conf.d/ssl.conf:
Invalid command 'SSLSessionCache', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
如果我评论该行,那么它会在下面显示错误。
Starting httpd: AH00526: Syntax error on line 24 of /etc/httpd/conf.d/ssl.conf:
Invalid command 'SSLSessionCacheTimeout', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
我不认为每次我都必须评论这些行。 目前,我不需要 ssl.conf。 因此,当我要重新启动 httpd 时,我不想调用它。 我该怎么做?
谢谢
【问题讨论】:
-
你是怎么评论出来的?在第 24 行开头使用
#。 -
@ThanhNguyenVan:- 是的,我在第 24 行的开头使用了 #
-
第二个错误日志和第一个错误日志一样,
#前面SSLSessionCacheTimeout行注释掉了吗 -
@ThanhNguyenVan:更新
-
如果您可以显示 /etc/http/httpd.conf 会有所帮助 - 通常如果您不需要 ssl.conf,请将其重命名为 ssl.backup
标签: amazon-web-services amazon-ec2 httpd.conf