This tutorial series explains how to troubleshoot and fix some of the most common errors that you may encounter when using the Apache web server.
本教程系列说明了如何解决和修复使用Apache Web服务器时可能遇到的一些最常见的错误。
Each tutorial in this series includes descriptions of common Apache configuration, network, filesystem, or permission errors. The series begins with an overview of the commands and log files that you can use to troubleshoot Apache. Subsequent tutorials examine specific errors in detail.
本系列中的每个教程都包含对常见Apache配置,网络,文件系统或权限错误的描述。 本系列文章首先概述了可用于对Apache进行故障排除的命令和日志文件。 后续教程将详细检查特定的错误。
介绍 (Introduction)
An Apache AH00558: Could not reliably determine the server's fully qualified domain name
message is generated when Apache is not configured with a global ServerName
directive. The message is mainly for informational purposes, and an AH00558 error will not prevent Apache from running correctly.
Apache AH00558: Could not reliably determine the server's fully qualified domain name
当未使用全局ServerName
指令配置Apache时, AH00558: Could not reliably determine the server's fully qualified domain name
消息已生成。 该消息主要用于提供信息,并且AH00558错误不会阻止Apache正常运行。
In this tutorial you will learn how to detect an AH00558 message using the methods described in the How to Troubleshoot Common Apache Errors tutorial at the beginning of this series. You will also learn how to set a ServerName
directive to resolve the message.
在本教程中,您将学习如何使用本系列开始部分的“ 如何对常见Apache错误进行故障排除”教程中描述的方法来检测AH00558消息。 您还将学习如何设置ServerName
指令来解析该消息。
If you have already determined that your Apache server is affected by an AH00558 message and you would like to skip the troubleshooting steps, the Setting a Global ServerName
Directive step at the end of this tutorial explains how to resolve the message.
如果您已经确定AH00558消息影响了Apache服务器,并且希望跳过故障排除步骤,那么本教程末尾的“ 设置全局ServerName
指令”步骤将说明如何解决该消息。
使用systemctl
故障排除 (Troubleshooting Using systemctl
)
The first step when you are troubleshooting an AH00558: Could not reliably determine the server's fully qualified domain name
message is to check Apache’s status using systemctl
. The output from systemctl
will in many cases contain all the information that you need to resolve the message.
对AH00558: Could not reliably determine the server's fully qualified domain name
进行故障排除时的AH00558: Could not reliably determine the server's fully qualified domain name
消息是使用systemctl
检查Apache的状态。 在许多情况下, systemctl
的输出将包含解决消息所需的所有信息。
On Ubuntu and Debian-derived Linux distributions, run the following to check Apache’s status:
在Ubuntu和Debian衍生的Linux发行版上,运行以下命令检查Apache的状态:
- sudo systemctl status apache2.service -l --no-pager sudo systemctl状态apache2.service -l --no-pager
On CentOS Fedora, and RedHat-derived s