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.
- (Optional) If you are migrating to PostgreSQL 12 from an older version follow the steps in the section Upgrading to PostgreSQL 12.
- Initialize the PostgreSQL data directory:
sudo -u postgres /usr/pgsql-12/bin/initdb --encoding UTF8 /var/lib/pgsql/12/data
- Set the database service to start on boot:
sudo systemctl enable postgresql-12
- If you are migrating from an older version of PostgreSQL, you will need to stop the old version and disable the old one before proceeding to the next step.
- Start the database service:
sudo systemctl start postgresql-12
- Check the status:
sudo systemctl status postgresql-12
© 2001-2023 Fair Isaac Corporation. All rights reserved. This documentation is the
property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
solely for internal evaluation purposes to determine whether to purchase a license to the software
described in this documentation, or as otherwise set forth in a written software license agreement
between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
it must conform strictly to the foregoing permitted uses, and no other use is permitted.