피카부 RSS 태그 관리 글쓰기 방명록 다시 시작하는 개발 블로그
2012-05-28 18:12:00

어느날 개발 서버에 접속이 안되어 httpd를 재시작하려니까 Failed가 떴다.

아무 에러도 나지 않아 error.log를 살펴본 결과,


[Tue Dec ** **:**:** ****] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "****.******.****.domain"


위와 같은 로그가 남겨져 있었다.

여기저기 찾아본 결과 원인은 hostname과 /etc/hosts의 써있는 내용이 맞지 않아서 였다.


1.HOST명 확인

]# hostname

 ****.******.****.domain


2./etc/hosts에 HOST명 추가

]# vi /etc/hosts

 127.0.0.1               ****.******.****.domain localhost.localdomain localhost


3.시작

]# /etc/init.d/httpd restart

Stopping httpd:                                            [FAILED]

Starting httpd:                                            [  OK  ]