Could not reliably determine the server's fully qualified domain name

启动apache报错:

[root@namenode1 ]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.139 for ServerName
[  OK  ]


解决方法:

修改配置文件

[root@namenode1 /]# vi /etc/httpd/conf/httpd.conf

将里面的 #ServerName localhost:80 注释去掉即可。

重启正常:

[root@namenode1 ]# service httpd restart
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]

posted on 2016-03-19 21:56  遠離塵世の方舟  阅读(271)  评论(0编辑  收藏  举报

导航