우분투 apache2: Could not reliably determine the server's fully qualified domain name

  다른 뜻에 대해서는 CentOS httpd: Could not reliably determine the server's fully qualified domain name 문서를 참조하십시오.
apache2 시작시 경고 메시지
apache2: Could not reliably determine the server's fully qualified domain name
AH00557: apache2: apr_sockaddr_info_get() failed for cbt
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message

1 문제상황[ | ]

root@ubuntu14:~# service apache2 restart
 * Restarting web server apache2
AH00557: apache2: apr_sockaddr_info_get() failed for cbt
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
                                                               [ OK ]
root@ubuntu12:~# service apache2 restart
 * Restarting web server apache2                                                             
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                                                    [ OK ]
→ 방치해도 상관 없지만, 뭔가 깔끔하지 않다...

2 아파치 설정[ | ]

root@zetawiki:~# grep ServerName /etc/apache2/apache2.conf
root@zetawiki:~#
→ ServerName이 지정되지 않았다.
root@zetawiki:~# echo "ServerName localhost" >> /etc/apache2/apache2.conf
root@zetawiki:~# grep ServerName /etc/apache2/apache2.conf
ServerName localhost

3 아파치 재시작[ | ]

root@zetawiki:~# service apache2 restart
 * Restarting web server apache2                               [ OK ]
→ 더 이상 경고메시지가 뜨지 않는다.

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}