Initializing help system before first use

Configuring PostgreSQL

Configure PostgreSQL by storing the database files in an alternative location, initializing the data directory, setting the database service to start on boot, and start the database service.
  1. (Optional) If you want to store database files in an alternative location follow the steps in the section Specifying an Alternative PostgreSQL Data Directory.
  2. Initialize the PostgreSQL data directory:

    Red Hat EL 6: service postgresql-9.5 initdb

    Red Hat EL 7: /usr/pgsql-9.5/bin/postgresql95-setup initdb

  3. Set the database service to start on boot: chkconfig postgresql-9.5 on
  4. Start the database service: service postgresql-9.5 start