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

# PostgreSQL:n asennus

Kopioi PostgreSQL:n asennusohjelma tietokantapalvelimelle.

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

Suorita PostgreSQL:n asennusohjelma järjestelmänvalvojana ja napsauta sitten ”Next >”.

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

Määritä tietokantamoottorin asennushakemisto ja napsauta sitten ”Next >”.

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

Valitse haluamasi komponentit ja napsauta sitten ”Next >”.

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

Määritä PostgreSQL:n tietojen tallennushakemisto ja napsauta sitten ”Next >”.

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

Anna ”superuser”-tilin salasana ja napsauta sitten ”Next >”.

> **Huomautus**
>
> Identity käyttää tätä tiliä yhteyden muodostamiseen tietokantaan.

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

Määritä portin numero, jota tietokantapalvelimen on kuunneltava, ja napsauta sitten ”Next >”. Oletuksena käytetään porttia `5432`.

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

Jätä ”Locale”-arvoksi ”DEFAULT” ja napsauta sitten ”Next >”.

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

Napsauta ”Next >”.

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

Napsauta ”Next >”.

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

PostgreSQL:n asennus alkaa.

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

PostgreSQL-tietokantamoottorin asennus on valmis.

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

Jatka asennuksen jälkeen PostgreSQL:n asennuksen jälkeisillä määrityksillä:

- Asennuksen jälkeiset määritykset

  ---

  Etäyhteydet (`pg_hba.conf`), `psql.exe`-työkalu, tietokannan alustus ja Identity-asennusohjelman asetukset.

  [→ Määritä](https://docs.cyberelements.io/identity/7.1/fi/Installation/InstallDoc/PostgreSQL/PostgreSQLPostInstallConfiguration/)
