httpd: Could not reliably determine the server‘s fully qualifie...essageHint: Some lines were ellip

启动httpd失败 

[root@zzp110 ~]# systemctl restart httpd
^C
[root@zzp110 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: deactivating (stop-sigterm) since 一 2022-11-21 14:06:40 CST; 1min 12s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 2736 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
 Main PID: 2741 (httpd)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─2741 /usr/sbin/httpd -DFOREGROUND
           ├─2771 /usr/sbin/httpd -DFOREGROUND
           ├─2772 /usr/sbin/httpd -DFOREGROUND
           ├─2773 /usr/sbin/httpd -DFOREGROUND
           ├─2774 /usr/sbin/httpd -DFOREGROUND
           └─2775 /usr/sbin/httpd -DFOREGROUND

11月 21 14:06:41 zzp110.localdomain systemd[1]: Starting The Apache HTTP Server...
11月 21 14:07:01 zzp110.localdomain httpd[2741]: AH00558: httpd: Could not reliably determine the server's fully qualifie...essage
Hint: Some lines were ellipsized, use -l to show in full.

启动httpd时报错:httpd: Could not reliably determine the server's fully qualifie...essage
Hint: Some lines were ellipsized, use -l to show in full.

原因:

找不到httpd服务的主机名

解决方法:

修改配置文件:/etc/httpd/conf/httpd.conf   ,去掉ServerName www.example.com:80  前的#

[root@zzp110 ~]# vim /etc/httpd/conf/httpd.conf 
[root@zzp110 ~]# systemctl restart httpd
[root@zzp110 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: active (running) since 一 2022-11-21 14:12:52 CST; 5s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 2925 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
 Main PID: 2930 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd.service
           ├─2930 /usr/sbin/httpd -DFOREGROUND
           ├─2932 /usr/sbin/httpd -DFOREGROUND
           ├─2933 /usr/sbin/httpd -DFOREGROUND
           ├─2934 /usr/sbin/httpd -DFOREGROUND
           ├─2935 /usr/sbin/httpd -DFOREGROUND
           └─2936 /usr/sbin/httpd -DFOREGROUND

11月 21 14:12:52 zzp110.localdomain systemd[1]: Starting The Apache HTTP Server...
11月 21 14:12:52 zzp110.localdomain systemd[1]: Started The Apache HTTP Server.
[root@zzp110 ~]# 

启动httpd服务失败并且出现AH00558错误是因为服务器无法可靠地确定其完全合格的域名。这个问题可以通过以下方法解决: 1. 打开httpd配置文件:`vim /etc/httpd/conf/httpd.conf` 2. 在配置文件中找到`ServerName`的行,确保其值设置为服务器的完全限定域名或IP地址。如果这一行前面有注释符号“#”,那么需要将其删除。 3. 如果你不知道服务器的完全限定域名,可以将`ServerName`的值设置为`localhost:80`来解决这个问题。 4. 保存并退出配置文件,并重新启动httpd服务:`systemctl restart httpd` 这样,你应该能够成功启动httpd服务并且不再看到AH00558错误消息了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [解决AH00558: httpd: Could not reliably determine the server‘s fully qualified domain name, using ...](https://blog.csdn.net/qq_52197320/article/details/129792027)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [Linux AH00558: apache2: Could not reliably determine the server‘s fully qualified domain name](https://blog.csdn.net/qq_34125713/article/details/128251727)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [apache启动报错:httpd: apr_sockaddr_info_get() failed](https://download.csdn.net/download/weixin_38689041/14090783)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

醉里看星辰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值