您的位置:首页 > 大数据 > 人工智能

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

2011-12-05 16:47 190 查看
測試系統: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  ]

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  domain server
相关文章推荐