How to check status of PostgreSQL server Mac OS X

前端 未结 7 1887
南旧
南旧 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:49

    You can use brew to start/stop pgsql. I've following short cuts in my ~/.bashrc file

    alias start-pg='brew services start postgresql'
    alias stop-pg='brew services stop postgresql'
    alias restart-pg='brew services restart postgresql'
    

提交回复
热议问题