[root@s1 conf]# service httpd restart
停止 httpd: [确定]
启动 httpd:httpd: apr_sockaddr_info_get() failed for s1
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[确定]
第一句没看懂啥意思,第二句就是无法确定完全合格域名,用127.0.0.1代替。那八成上面那句错误跟第二句有关系了,在httpd.conf全局配置中加一句code:
servername s1 //我主机名为是s1
或者是将httpd.conf中的ServerName 前面的 # 去掉 根据上面的notes自己修改。
restart server OK。
原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/237.html