[root@niejicai ~]# /etc/init.d/httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for niejicai
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Starting httpd: httpd: apr_sockaddr_info_get() failed for niejicai
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
解决方法:
第一:
[root@niejicai ~]# vim /etc/hosts
127.0.0.1 niejicai
第二:
[root@niejicai ~]# vim /etc/httpd/conf/httpd.conf
ServerName localhost:80
重启即可!