Installieren von Postgres auf Fedora
Quelle: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/
Installation
The installation and initialization of the postgresql server is a little bit different in comparison to other packages and other Linux distros. This document aims to summarize basic installation steps relevant to recent Fedora Linux releases.
sudo dnf install postgresql-server postgresql-contrib
The postgresql server is not running and disabled by default. To set it to start at boot, run:
sudo systemctl enable postgresql
The database needs to be populated with initial data after installation. The database initialization could be done using following command. It creates the configuration files postgresql.conf and pg_hba.conf
suodsudo postgresql-setup --initdb --unit postgresql
To start the postgresql server manually, run
suodsudo systemctl start postgresql
Benutzer und Datenbank erstellen