今天启动apache查看状态发现报错,说不能确认服务器完全确认域名,以下是报错内容:

  1. [root@localhost ~]# service httpd status
  2. Redirecting to /bin/systemctl status httpd.service
  3. httpd.service - The Apache HTTP Server
  4. Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
  5. Active: active (running) since Thu 2019-09-19 16:13:13 CST; 19min ago
  6. Docs: man:httpd(8)
  7. man:apachectl(8)
  8. Process: 4342 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  9. Main PID: 4459 (httpd)
  10. Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
  11. CGroup: /system.slice/httpd.service
  12. ├─4459 /usr/sbin/httpd -DFOREGROUND
  13. ├─4460 /usr/sbin/httpd -DFOREGROUND
  14. ├─4461 /usr/sbin/httpd -DFOREGROUND
  15. ├─4462 /usr/sbin/httpd -DFOREGROUND
  16. ├─4463 /usr/sbin/httpd -DFOREGROUND
  17. └─4464 /usr/sbin/httpd -DFOREGROUND
  18.  
  19. Sep 19 16:13:13 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
  20. Sep 19 16:13:13 localhost.localdomain httpd[4459]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdo...is message ###就是这一个
  21. Sep 19 16:13:13 localhost.localdomain systemd[1]: Started The Apache HTTP Server.
  22. Hint: Some lines were ellipsized, use -l to show in full.

解决办法:

vi /etc/httpd/conf/httpd.conf   加入一句  ServerName  localhost:80

然后重启apache服务

  1. [root@localhost ~]# vi /etc/httpd/conf/httpd.conf
  2. [root@localhost ~]# service httpd restart
  3. Redirecting to /bin/systemctl restart httpd.service
  4. [root@localhost ~]# service httpd status
  5. Redirecting to /bin/systemctl status httpd.service
  6. httpd.service - The Apache HTTP Server
  7. Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
  8. Active: active (running) since Thu 2019-09-19 16:38:08 CST; 5s ago
  9. Docs: man:httpd(8)
  10. man:apachectl(8)
  11. Process: 4610 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  12. Main PID: 4615 (httpd)
  13. Status: "Processing requests..."
  14. CGroup: /system.slice/httpd.service
  15. ├─4615 /usr/sbin/httpd -DFOREGROUND
  16. ├─4616 /usr/sbin/httpd -DFOREGROUND
  17. ├─4617 /usr/sbin/httpd -DFOREGROUND
  18. ├─4618 /usr/sbin/httpd -DFOREGROUND
  19. ├─4619 /usr/sbin/httpd -DFOREGROUND
  20. └─4620 /usr/sbin/httpd -DFOREGROUND
  21.  
  22. Sep 19 16:38:08 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
  23. Sep 19 16:38:08 localhost.localdomain systemd[1]: Started The Apache HTTP Server.
  24. [root@localhost ~]#

apache状态显示报错AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdo...is message的更多相关文章

  1. apache环境配置 | httpd Could not reliably determine the server's fully qualified domain name

    apache环境配置 | httpd Could not reliably determine the server's fully qualified domain name    转 https: ...

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

    作者:Younger Liu, 本作品采用知识共享署名-非商业性使用-相同方式共享 3.0 未本地化版本许可协议进行许可. 问题描述: AH00558: httpd: Could not reliab ...

  3. 源码安装Apache,报错:Cannot use an external APR with the bundled APR-util和httpd: Could not reliably determine the server's fully qualified domain name, using

    一.解决APR和APR-util错误: 1.1.安装APR: [root@ganglia httpd-2.2.23]# cd srclib/apr [root@ganglia apr]# ./conf ...

  4. 解决Apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

    启动apache遇到提示: [root@bqh-119 conf]# ../bin/apachectl -thttpd: apr_sockaddr_info_get() failed for bqh- ...

  5. 测试Apache服务器及httpd: Could not reliably determine the server's fully qualified domain name解决办法

    测试Apache服务器: 重启apache: sudo /usr/local/apache/bin/apachectl restart 若出现错误: httpd: Could not reliably ...

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

    启动apache的时候,报告以下消息提示: Starting httpd: httpd: Could not reliably determine the server's fully qualifi ...

  7. 重启服务器“AH00558: apache2: Could not reliably determine the server's fully qualified domain name”问题的解决

    重启服务器时报错: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, u ...

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

    #service httpd start #Starting httpd: httpd: Could not reliably determine the server's fully qualifi ...

  9. httpd: Could not reliably determine the server's fully qualified domain name(转)

    ttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for Ser ...

随机推荐

  1. Raft算法系列教程2:状态机复制 (State Machine Replication)

    分区容错如何保证? 在分布式系统设计中,需要遵循CAP理论,如果我们要让一个服务具有容错能力,那么最常用最直接的办法就是让一个服务的多个副本同时运行在不同的节点上.但是,当一个服务的多个副本都在运行的 ...

  2. windows 任何软件出现异常有日志 w3wp.exe [10608]中发生了未处理的Microsoft .Net Framework异常

    右键我的电脑 管理

  3. web项目中使用火狐浏览器导出文件时文件名乱码

    原因 主要是编码的问题.在设置文件名称前,加上判断.判断下载者使用的浏览器,如果不是火狐浏览器,则对文件名称进行UTF8编码;如果是火狐浏览器,则不对文件名称进行操作. 解决办法 文件名称编码时进行判 ...

  4. springMVC框架配置定时器

    在springmvc.xml添加如下内容在xmlns中添加 xmlns:task="http://www.springframework.org/schema/task"1在xsi ...

  5. session在什么时候创建,以及session一致性问题

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明.本文链接:https://blog.csdn.net/wowwilliam0/article/d ...

  6. JavaSwing 船只停靠管理可视化(一)

    最近抽空闲时间做了船只停靠管理系统,先看一下效果. 停靠泊位管理:实现泊位的 增删改查. JavaSwing 船只停靠管理可视化(一) JavaSwing 船只停靠管理可视化(二) JavaSwing ...

  7. kill的使用

    Linux中Kill进程的N种方法 (2011-12-23 17:27:59) 转载▼ 标签: 杂谈 分类: ubuntu系统操作 常规篇: 首先,用ps查看进程,方法如下: $ ps -ef -- ...

  8. win8.1下jdk的安装和环境变量的配置 eclipse的安装和汉化

    1.首先下载jdk安装包,安装的时候会有两个文件安装,一个是jdk一个是jre建议两个文件不要安装在一个目录下 2.安装jdk后面就是配置环境变量,path和classpath,path要在用户变量中 ...

  9. Linux下Oracle19c离线rpm安装

    一.基础环境配置 1.关闭系统防火墙 systemctl stop firewalld syustemctl disable firewalld 2.关闭selinux vim /etc/selinu ...

  10. Logstash学习之路(四)使用Logstash将mysql数据导入elasticsearch(单表同步、多表同步、全量同步、增量同步)

    一.使用Logstash将mysql数据导入elasticsearch 1.在mysql中准备数据: mysql> show tables; +----------------+ | Table ...