yum 安装httpd时,遇到错误apr_sockaddr_info_get() failed for kickstart;Could not reliably determine the serve

来源:互联网 发布:mac是什么意思 编辑:程序博客网 时间:2024/05/21 08:48

在yum安装httpd服务时,遇到此种问题:

[root@kickstart ~]# /etc/init.d/httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for kickstart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName     [  OK  ]

解决方法:

步骤一:sed -i.org  '266a  ServerName localhost:80'  /etc/httpd/conf/httpd.conf

步骤二:/etc/init.d/httpd restart   便不再有上述提示。

阅读全文
0 0