httpd.exe: Could not reliably determine the server’s fully qualified domain name
查看系統(tǒng)日志,看到這個(gè)錯(cuò)誤:
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.1.xx for ServerName
雖然apache能正常運(yùn)行,但是覺(jué)得不爽,查了一下原來(lái)是因?yàn)镈NS沒(méi)配置好。我們細(xì)看httpd.conf文件的時(shí)候,可以看到以下:
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
apache啟動(dòng)時(shí)可能會(huì)查詢DNS來(lái)驗(yàn)證ServerName的配置,我們只要在httpd.conf文件加入 ServerName localhost:80 重啟apache即可,localhost這里我們就填寫自己服務(wù)器的IP地址。