Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Check PostgreSQL Status
#1


    How to Check PostgreSQL Status

   

After installing PostgreSQL, check whether it is enabled and active. Use the systemctl or service command utility to verify the service status:


   
sudo service postgresql status

   
sudo systemctl status postgresql

   

If PostgreSQL is enabled, your command line will output active and loaded, similar to the following:

   

   

In addition to the service status, check whether PostgreSQL is ready to accept a connection using this command:


   
sudo pg_isready

   

   

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)