错误提示
[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服务!