【解決】Starting httpd: httpd: apr_sockaddr_info_get() failed for DB2

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  ]


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章