错误提示
[root@lotus conf]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for lotus.tye
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
解决方法:
- 修改/etc/hosts文件
[root@lotus conf]# vim /etc/hosts
127.0.0.1 lotus.tye
- 修改httpd配置文件
[root@lotus conf]# vim /etc/httpd/conf/httpd.conf
ServerName lotus.tye:80
重启httpd服务!
当遇到httpd服务启动时出现apr_sockaddr_info_get失败和无法确定服务器全域名的错误,可以通过修改/etc/hosts文件和httpd配置文件来解决。在hosts文件中将服务器IP与域名对应,然后在httpd.conf中设置ServerName为该域名,最后重启httpd服务。
706

被折叠的 条评论
为什么被折叠?



