2013-04-27 3 views
0

저는 루비와 포스트그레스에 대해 매우 익숙합니다.
은 내가오류 : POSTGRESQL 서버 시작

ruby scrpit/server, rake db:migrate, rake db:seed 

내가이 얻을 실행하려고하면.

Rails 2.3.11 application starting on http:/0.0.0.0:3000 
warning: already initialized constant SESSION_SECRET 
Faraday: you may want to install system_timer for reliable timeouts 
/home/user/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-.3.11/lib/active_record/connection_adapters/postgresql_adapter.rb:941:in `initialize': could not connect to server: Connection refused (PGError) 

Is the server running on host "localhost" (127.0.0.1) and accepting 
TCP/IP connections on port 5432? 

내가 우분투 12.04, 루비 1.8.7 오전는 레일 - 2.3, 보석은 1.5.3

답변

0

이것은 당신이해야 할 일이다

을 포스트 그레스 서버가 실제로 실행되고 있는지 확인

$ netstat -a | grep postgre 

실행중인 경우 psql 명령을 사용하여 터미널에서 연결을 시도하십시오. 그것을 가동시키지 마십시오. 수동으로

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start 

아직 시작되지 않는 경우, 는 server.log에 오류 메시지가 있습니까를 시작하려고? 그렇다면 여기에 게시하십시오.

행운을 빈다.

+0

답장을 보내 주셔서 감사합니다. 두 가지 모두 시도했지만 그 중 아무 것도 작동하지 않았습니다. 오류 메시지는 다음과 같습니다 .http : //pastebin.com/jwVB3NaS – user2295369

+0

-Error : 다음 패키지에는 unmet 종속성이 있습니다. postgres-xc : 종속 : postgres-xc-client E : 문제를 해결할 수 없으면 손상된 패키지를 보유하게됩니다. – user2295369