Install PostgreSQL Install postgresql, postgresql-devel, and postgresql-libs, and configure data directory and start the service (as the postgres user). sudo yum install postgresql postgresql-server postgresql-devel sudo mkdir /usr/local/pgsql/ sudo mkdir /usr/local/pgsql/data sudo chown postgres /usr/local/pgsql/data sudo su postgres initdb -D /usr/local/pgsql/data postgres -D /usr/local/pgsql/da