这是journalctl -xe
错误的结果。当我用默认的 ssl.conf 替换 default-ssl.conf 时,不会发生这种情况。
-- Unit apache2.service has begun starting up.
Kas 06 00:55:42 XCH apachectl[25161]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Kas 06 00:55:42 XCH apachectl[25161]: Action 'start' failed.
Kas 06 00:55:42 XCH apachectl[25161]: The Apache error log may have more information.
Kas 06 00:55:42 XCH systemd[1]: apache2.service: Control process exited, code=exited status=1
Kas 06 00:55:42 XCH systemd[1]: apache2.service: Failed with result 'exit-code'.
Kas 06 00:55:42 XCH systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
journalctl | tail
结果都是带有 mac 和 ip 信息的 [UFW BLOCK] 行。
我只是按照互联网上的任何参考资料和教程操作,但我想这种情况只会发生在我身上。提前谢谢。
答案1
如果你盲目地追随互联网上的东西,那你就完了。你的生活将充满困惑和失败。
但是,仔细阅读“ ”后,您会发现修改后的 中的指令 Kas 06 00:55:42 XCH apachectl[25161]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
存在问题。执行此操作之前,您是否有一个有效的配置?ServerName
default-ssl.conf
apache2