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

简介: [root@luozhonghua sbin]# service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua httpd: Could not reliably determine the server's fully qualified domain name, u
[root@luozhonghua sbin]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

                                                           [FAILED]



遇到这个情况,说明80端口被占用,也就是你系统已有了80端口暂用,怎么办了


先检查下:



[root@luozhonghua sbin]# netstat -lnp|grep 80
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN                  5619/nginx
unix  2      [ ACC ]     STREAM     LISTENING     12380  1759/abrtd          /var/run/ab            rt/abrt.socket
unix  2      [ ACC ]     STREAM     LISTENING     16831  2143/nautilus       /tmp/orbit-            root/linc-85f-0-3e753e8283a80


方法是,关闭被占用的程序,一般来说,也就是另一个容器而已

比如我机器上就有nginx占用,那么 ./usr/local/nginx/nginx -s stop

然后再起  service httpd start

即可

当然另一种办法就是修改httpd默认端口80,但不推荐



目录
相关文章
|
9月前
|
SQL druid Java
解决 ‘The last packet successfully received from the server was xxx milliseconds ago‘ 问题
解决 ‘The last packet successfully received from the server was xxx milliseconds ago‘ 问题
5442 0
|
10月前
|
Linux
ERROR: 2 matches found based on name: network product-server_default is ambiguous
ERROR: 2 matches found based on name: network product-server_default is ambiguous
94 0
|
XML 应用服务中间件 数据格式
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
78 0
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
|
Java 关系型数据库 MySQL
问题记录:The last packet sent successfully to the server was ****
集成Mybatis的项目中出现了这个问题,初看很蒙比,最近一次成功发送请求到达服务器,你报错干什么?首先必须说的是这个一个关于Mybatis的报错,那什么原因导致了这个问题呢?
416 0
|
Kubernetes 容器
k8s报错:Error from server (NotFound): the server could not find the requested resource (get services h
k8s报错:Error from server (NotFound): the server could not find the requested resource (get services h
|
Linux 网络架构
Root-NFS: Unable to get mountd port number from server, using default
问题描述:         以前下载到开发板linux内核启动好好地,今天突然启动不了了,到达Root-NFS: Unable to get mountd port number from server, using default这个位置就停住了,过了一段时间就显示,如图:       很明显,我的nfs有问题。
1411 0