这个配置错误会阻止apache重新启动吗

发布于 2024-09-15 08:03:25 字数 466 浏览 9 评论 0原文

我有一个在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

棒棒糖 2024-09-22 08:03:25

我认为 Apache 会因任何错误而挂起,特别是语法错误。

I think that Apache hangs on any error, specially syntax errors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文