- Install postgresql-server package:
sudo dnf install postgresql-server
- Switch to postgres user using:
sudo su - postgres
- Initialize the PostgreSQL Data Cluster:
initdb
- Start PostgreSQL DB instance:
pg_ctl -D /var/lib/pgsql/data -l logfile start
- Create user 'keycloak' with password:
createuser keycloak -d -P
- Created database for use with keycloak:
createdb -O keycloak keycloak
- Exit the postgres user shell:
exit
- Start|Stop|Restart|Status the server
sudo systemctl start|stop|restart|status postgresql
- Get JDBC driver:
sudo dnf install postgresql-jdbc
For jar files look tosudo dnf repoquery -l postgresql-jdbc
- Start client for a quick query in DB:
psql postgresql://localhost/keycloak -U keycloak