这个配置错误会阻止apache重新启动吗
我有一个在 Linux 上运行 apache 的生产网站。有各种各样的规则,我不想乱搞。
我需要重新启动 apache,所以我决定首先进行配置测试以检查一切是否正常。
我的问题是,如果出现此错误,apache 会重新启动吗?
>$ service httpd configtest
Syntax error on line 129 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/httpd/conf/ssl.crt/server.crt' does not exist or is empty
我没有更改 ssl.conf,我不知道是谁做的,我不知道如何修复它。 Apache 现在运行良好。我可以安全地重新启动 apache 并期望它出现吗?如果有比这个更多的错误,它们会显示 - 或者 configtest 在第一个错误后停止吗?
I have a production website running apache on linux. There are all sorts of rules set up which I don't want to mess with.
I need to restart apache so I decided to do a configtest first to check that everything was ok.
My question is, will apache restart given this error?
>$ service httpd configtest
Syntax error on line 129 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/httpd/conf/ssl.crt/server.crt' does not exist or is empty
I didn't change the ssl.conf, I don't know who did, I don't know how to fix it. Apache is running fine now. Can I safely restart apache and expect it to come up? If there were more errors than this one would they show - or does configtest stop after the first error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 Apache 会因任何错误而挂起,特别是语法错误。
I think that Apache hangs on any error, specially syntax errors.