天天看點

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

啟動httpd失敗 

[[email protected] ~]# systemctl restart httpd
^C
[[email protected] ~]# 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  前的#

[[email protected] ~]# vim /etc/httpd/conf/httpd.conf 
[[email protected] ~]# systemctl restart httpd
[[email protected] ~]# 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.
[[email protected] ~]# 
           

繼續閱讀