ITPub博客

首页 > Linux操作系统 > Linux操作系统 > httpd: Could not reliably determine the server's fully qualified domain name

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

原创 Linux操作系统 作者:goolen 时间:2014-12-09 10:41:25 0 删除 编辑
启动http服务的时候出现警告信息:
[root@goolen ~]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.100.50 for ServerName

解决方法:
编辑http配置文件:
[root@goolen ~]# vim /etc/httpd/conf/httpd.conf

找到如下内容:
#ServerName 

修改为如下:
ServerName 192.168.100.50:80

重启服务:
[root@goolen ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23249684/viewspace-1361630/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-10-20

  • 博文量
    121
  • 访问量
    731657