[root@jacken ~]# cd /software/
[root@jacken software]# ls
httpd-2.2.27.tar.gz
[root@jacken software]# tar -zxf httpd-2.2.27.tar.gz
[root@jacken software]# ls
httpd-2.2.27 httpd-2.2.27.tar.gz
[root@jacken httpd-2.2.27]#
./configure --prefix=/usr/local/apache2 &&make && make install
[root@jacken httpd-2.2.27]# echo $?
0
启动Apache服务
[root@jacken ~]# /usr/local/apache2/bin/apachectl start
httpd: apr_sockaddr_info_get() failed for jacken
httpd: Could not reliably determine the server'sfully qualified domain name, using 127.0.0.1 for ServerName
之所以启动Apache的时候报
httpd: apr_sockaddr_info_get() failed for jacken
httpd: Could not reliably determine the server'sfully qualified domain name, using 127.0.0.1 for ServerName
这不能属于一个错误,因为这个不影响服务的正常运行,但我看着就是不爽。
原因:这个问题应该是没有在 httpd.conf 中设定 ServerName
解决办法: