Unable to start postgresql service on CentOS 7

前端 未结 2 573
难免孤独
难免孤独 2021-01-31 09:22

Unable to start postgresql-9.5 on CentOS 7.

I followed this page - https://wiki.postgresql.org/wiki/YUM_Installation - for installing the database server on CentOS.

2条回答
  •  灰色年华
    2021-01-31 09:52

    The most common issue is that the database cluster was not initialized. You can initialize it easily by running the postgresql-XX-setup script with the initdb command, e.g.

    sudo /usr/pgsql-11/bin/postgresql-11-setup initdb
    

    Then start the Postgres service, e.g.

    sudo systemctl start postgresql-11
    

提交回复
热议问题