ITPub博客

首页 > 数据库 > Oracle > Starting httpd: httpd: Could not reliably determine the server

Starting httpd: httpd: Could not reliably determine the server

原创 Oracle 作者:ultradb 时间:2016-10-18 19:06:15 0 删除 编辑

1.1  启动apache遇到错误

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

1.1.1  问题描述

[root@master Packages]#  service httpd start

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.98.156 for ServerName

(2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.

Unable to open logs

[FAILED]

[root@master Packages]#

1.1.2  问题处理

启动apache遇到错误:httpd: Could not reliably determine the server’s fully qualified domain name

httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

1)  进入apache的安装目录:(视个人安装情况而不同)

2)  /etc/httpd/conf/httpd.conf

3)  编辑httpd.conf文件,搜索”#ServerName”,添加ServerName localhost:80

4)  #ServerName

5)  ServerName localhost:80

6)  再重新启动apache 即可service httpd restart

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

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

注册时间:2010-07-01

  • 博文量
    52
  • 访问量
    198228