> Apache 安装和启动时报错:无法使用可靠的服务器域名,打开Apache配置文件`httpd.conf`,去除 `ServerName` 前面的注释即可 **1. 报错信息:无法使用可靠的服务器域名** ![](https://img.itqaq.com/art/content/b774ee970636021f75fe3233a4d16c67.png) ``` AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::248a:ab9c:ca07:7a9b. Set the 'ServerName' directive globally to suppress this message ``` **2. 英语不好,走下百度翻译** ![](https://img.itqaq.com/art/content/12466b9f5407457c148795b036bc1819.png) **3. 报错信息说全局设置 `ServerName` 来禁止显示此消息,打开配置文件** ServerName 前面默认带有 `#`,也就是注释 ![](https://img.itqaq.com/art/content/3a34ace05c303359fd73be23e6af8c36.png) **4. 将注释去掉即可,该报错信息就没了** 网上很多说改为 `ServerName localhost:80`, 其实去掉前面注释报错就不显示了 ![](https://img.itqaq.com/art/content/237b6b8cb207fb12d88948de688a7857.png)