在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 便不再有上述提示。