2014-10-13 7 views
39

postgresql을 통해 HomeBrew을 설치했습니다. 그것은 작동하지만 오늘은 컴퓨터가 시작될 때 postgresql 서버가 실행되지 않는 것을 발견했습니다.Mac OS에서 시작시 postgresql을로드 할 수 없습니다.

나는 아래의 명령으로 다시로드 launchctl를 사용하려고 :

$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist 

나는 메시지 참조 : 나는 PostgreSQL의 서비스를 활성화하는 방법을 모른다

/usr/local/Cellar/postgresql/9.3.4/homebrew.mxcl.postgresql.plist: Service is disabled 

합니다. 누구든지 저를 보여줄 수 있습니까?

답변

81

-w 옵션을 launchctl과 함께 사용하십시오.

$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist 

-w 비활성화 키를 무시하고 false로 설정합니다.

+6

그 'launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist' 여야합니다. – Zubin

+0

'-w'는 "Disabled"오버라이드를 어디에 두는가? 이 명령을 실행하면'/ private/var/db/launchd.db/com.apple.launchd/overrides.plist'에서 찾을 수 없습니다. – Matt

+8

그러나 어떻게 처음에는 장애가 되었습니까? 뚜렷한 이유가 없기 때문에 같은 문제가 생겨서 호기심이 생깁니다 ... –

1

또한 ~/Library/LaunchAgents

5

brew info postgresql 등의 새로운 방법은 말한다에 PLIST 파일을 데이터베이스를 설정하고 이동하는 방법에 대한 제안에 대한 명령 brew info postgresql을 사용하는 것이 도움이 될 수 있습니다 요세미티에서

brew services start postgresql