现在的位置: 首页 > 综合 > 正文

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

2013年12月05日 ⁄ 综合 ⁄ 共 552字 ⁄ 字号 评论关闭

測試系統:mdv2007

#service httpd restart

出現下面錯誤

Shutting down httpd:                                             [  OK  ]

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

Starting httpd:                                                       [  OK  ] 

這個問題應該是沒有在 /etc/httpd/conf/httpd.conf 中設定 ServerName 

vi /etc/httpd/conf/httpd.conf

找到 ServerName 可能已經被註解了,這時只要將註解符號拿掉,再取個適當的名稱即可解決!

ServerName localhost 

service httpd restart顯示正常

Shutting down httpd:                     [  OK  ]

Starting httpd:                                 [  OK  ]

抱歉!评论已关闭.