질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

postgresql 을 시작을 못시킵니다..

작성자 정보

  • 강승진 작성
  • 작성일

컨텐츠 정보

본문

 

와우 7.1을 쓰고 있습니다..;;  한번도 공격을 안당했습니다.. 신기신기 ^^

그런데 갑자기 postgresql에 문제가 생겨서

소스컴파일도 해보고 ,  rpm으로 postgresql 7.0.3도 설치해 보고 하는데...

 postgresql을 재실행하면 항상 아무런 오류메세지도 없이 그냥 'failed'라고만 나옵니다.

 그래서 오류메세지를 확인하기 위해

 su -l postgres 한 후에.. 아래와 같이 어찌어찌 하다 보니까 메모리, 세마포어 이야기가

 나옵니다..

bash-2.04$ /usr/bin/pg_ctl  -D $PGDATA -p /usr/bin/postmaster start
postmaster successfully started up.
bash-2.04$ 040114.16:30:48.305 [26734] IpcMemoryCreate: shmget failed (Permission denied) key=5432010, size=144, permission=700
This type of error is usually caused by an improper
shared memory or System V IPC semaphore configuration.
For more information, see the FAQ and platform-specific
FAQ's in the source directory pgsql/doc or on our
web site at http://www.postgresql.org.
040114.16:30:48.306 [26734] IpcMemoryAttach: shmat failed (Permission denied) id=3670019
040114.16:30:48.306 [26734] FATAL 1:  AttachSLockMemory: could not attach segment

 

ipcclean을 실행시키면 postmaster가 돌고 있다는 메세지만 나옵니다..
postgresql은 이미 죽어 있는 데 말이지요..

bash-2.04$ /usr/bin/ipcclean
ipcclean: You still have a postmaster running.

관련자료

댓글 1

강승진님의 댓글

  • 강승진
  • 작성일
해결했습니다^^ ipcs로 쓸데없는 세마포아ID 알아내고, ipcrm [세마포아ID] 로 삭제하여.. 공유메모리 확보했더니.. 잘 됩니다..^^

공지사항


뉴스광장


  • 현재 회원수 :  60,344 명
  • 현재 강좌수 :  37,027 개
  • 현재 접속자 :  257 명