Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for DB2
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
解决措施:
(1)、在httpd.conf文件最开头添加ServerName localhost:80
[root@DB2 ~]# vi /etc/httpd/conf/httpd.conf
ServerName localhost:80
(2)、在hosts文件末尾添加127.0.0.1 db2
[root@DB2 ~]# cat << EOF >>/etc/hosts
127.0.0.1 db2
EOF
(3)、重启服务
[root@DB2 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]