今天接到學校電話 說SERVER的學校首頁無法開啓,解決方式留個記錄!
環境: centos 5.4
連線到主機 發現 Apache一直無法啟動 ,重新更新Apache 也沒有用
看看Log檔 僅發現下列訊息
[Mon Mar 11 22:15:36 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 22:09:25 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 22:06:03 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 22:06:03 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 22:06:02 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 22:06:00 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 18:47:14 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 18:41:59 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 18:27:49 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 18:23:56 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 17:27:57 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 17:02:13 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 11 17:00:34 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
 
google老半天 突然發現一篇日文文章 在對照log 檔相關訊息果然發現嫌疑犯
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
 
所以就執行了
# mv /etc/httpd/conf.d/nns.conf /tmp/
# /etc/rc.d/init.d/httpd start
果然好了~~