日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name 解决

發布時間:2025/4/16 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name 解决 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

原文地址: http://digitaldeviation.com/articles/linux/apache-error-could-not-reliably-determine-the-servers-fully-qualified-domain-name


When starting Apache for the first time or after a networking change you get the following error:

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

This message is more of a warning than an error. If you check your running processes you will see the httpd process running. Basically Apache is telling you that it doesn't know the host name of your server. This is a simple fix.

Note that the instructions below are for CentOS/Redhat. They may be similar for your distro. You will need to know your IP address and the host name for your server. I will use Server1.example.com as the host name and 192.168.20.100 as the IP address.

  • Edit /etc/hosts using your favorite editor The contents should look something like this:# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
  • At the end of the file add: 192.168.20.100 Server1.example.com That's a [tab] between the IP address and the host name
  • Save the file
  • Restart the network services to apply your changes service network restart
  • Restart Apache service httpd restart



  • http://www.wallpaperama.com/forums/how-to-fix-could-not-determine-the-servers-fully-qualified-domain-name-t23.html

    127.0.0.1 localhost
    123.123.123.123 hostname.domain.de hostname




    The fix is to edit the conf file and add in the ServerName setting (as the error message requests). In other words,

    sudo vi /etc/apache2/httpd.conf

    by adding the following string:,

    # ServerName is to be specified to avoid warning during reload
    ServerName MYSERVER





    總結

    以上是生活随笔為你收集整理的Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name 解决的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。