Error Job For Postgresql.service failed

Error job for postgresql, If you face this issue on your server means you need to check the status of your database server and logs to resolve this issue asap.

Check out Installation of PostgreSql 9.5 Database Server

In my case, I found I did not initialise the database that is why I got this error postgresql.service failed.

So to solve this, You need to initialise the postgresql server first then start the service.

Step 1 : To initialise the database command is

postgresql-setup  initdb            # postgresql Version 9.x

Another command is

service postgresql initdb           # Redhat Version 6.x

Step 2 : Now try to start postgresql server

systemctl start postgresql

That’s it.


Please enter your comment!
Please enter your name here