apm설치첫단계에서 에러가생겨요.
mysql압축풀고 make;make install 한뒤 아래 명령을 내리면 에러가 뜨는데 이유를 도무지...
./scripts/mysql_install_db
Sorry, the host 'net302' could not be looked up.
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option
mysql_install_db 는 호스트 이름을 조회하는데 hostname 이 이름을 풀지 못해서 생기는 에러입니다. /etc/hosts 에 'IP 호스트이름' 줄을 넣으면 해결됩니다.
임시로는 --force 옵션으로 실행할 수 있지만, /etc/hosts 설정이 근본 해결입니다.