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

发布时间:2020-02-23编辑:脚本学堂
httpd: Could not reliably determine the server's fully qualified domain name的解决办法

运行环境:
mysql-5.0.45
httpd-2.2.8
php-5.3.2
启动apachetl 时提示:‘httpd: Could not reliably determine the server's fully qualified domain name’

解决办法
#vim /etc/hosts
# 添加一行
127.0.0.1   centos5  #CentOS5代表主机名
#x  
# 保存退出