How to check status of PostgreSQL server Mac OS X

前端 未结 7 1867
南旧
南旧 2020-12-04 06:52

How can I tell if my Postgresql server is running or not?

I\'m getting this message:

[~/dev/working/sw] sudo bundle exec rake db:migrate 
rake aborte         


        
相关标签:
7条回答
  • 2020-12-04 07:51

    It depends on where your postgresql server is installed. You use the pg_ctl to manually start the server like below.

    pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
    
    0 讨论(0)
提交回复
热议问题