문서에 Gerrit 설치하는걸 해보고 있는데요
아래와 같이 apache 서버 실행시 에러가 발생하고 있습니다.
현재 윈도우에 vmware로 유분투 설치해서 사용중입니다.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
어떤 이유로 발생하는 지 좀 알려주세요
/etc/apache2/site-enable 하위의 .conf 파일에 "ServerName localhost" 라고 기입되어 있고 localhost가 global domain name이 아니기 때문에 보여지는 warning message 입니다. 이 메시지가 출력된다고 해서 gerrit 또는 다른 web service가 비정상 동작하지는 않습니다. 그래도 깔끔함을 위해 다름과 같은 방법으로 warning message가 발생하지 않도록 조치하면 좋겠습니다.
/etc/apache2/conf.d/fqdn 파일에 "ServerName loalhost" 를 추가 합니다. (fqdn 파일이 없다면 파일 생성, "" 는 입력하지 않습니다)
요렇게 ==> echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
Ubuntu 14.04가 설치되었다면,
요렇게 ==> echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf
sudo a2enconf fqdn
Warning message가 사라지지 않는다면 알려주세요.