postgres database is running or not - command

 $ ps -ef | grep postgres

$ pg_lsclusters

Running pg_lsclusters will list all the Postgres clusters running on your device




check postgres is running or not :: 

sudo -u postgres psql

Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5