> Source: https://docs.cyberelements.io/identity/7.1/pl/Installation/InstallDoc/PostgreSQL/PostgreSQLInstallation/

# Instalacja PostgreSQL

Skopiuj program instalacyjny PostgreSQL na serwer bazy danych.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-CopySetup.png)

Uruchom program instalacyjny PostgreSQL jako administrator, a następnie kliknij „Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-Welcome.png)

Określ katalog instalacyjny silnika bazy danych, a następnie kliknij „Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-InstallationDirectory.png)

Wybierz żądane komponenty, a następnie kliknij „Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-SelectComponents.png)

Określ katalog przechowywania danych PostgreSQL, a następnie kliknij „Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-DataDirectory.png)

Wprowadź hasło konta „superuser”, a następnie kliknij „Next >”.

> **Uwaga**
>
> Identity będzie używać tego konta do łączenia się z bazą danych.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-SuperuserPassword.png)

Określ numer portu, na którym ma nasłuchiwać serwer bazy danych, a następnie kliknij „Next >”. Domyślnie używany jest port `5432`.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-Port.png)

Pozostaw wartość „Locale” ustawioną na „DEFAULT”, a następnie kliknij „Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-AdvancedOptionsLocale.png)

Kliknij „Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-PreInstallSummary.png)

Kliknij „Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-ReadyToInstall.png)

Rozpoczyna się instalacja PostgreSQL.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-Installing.png)

Instalacja silnika bazy danych PostgreSQL została zakończona.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-Completed.png)

Po zakończeniu instalacji przejdź do konfiguracji poinstalacyjnych PostgreSQL:

- Konfiguracje poinstalacyjne

  ---

  Dostęp zdalny (`pg_hba.conf`), narzędzie `psql.exe`, inicjalizacja bazy danych i ustawienia instalatora Identity.

  [→ Skonfiguruj](https://docs.cyberelements.io/identity/7.1/pl/Installation/InstallDoc/PostgreSQL/PostgreSQLPostInstallConfiguration/)
