Instalación PostgreSQL
GNU/Linux
Ubuntu
Ubuntu 22.04 lTS
cd ~ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt update sudo apt -y install postgresql sudo apt autoclean && sudo apt clean
RUN PostgreSQL
sudo systemctl status postgresql
Sale por pantalla:
postgresql.service - PostgreSQL RDBMS Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled) Active: active (exited) since Sat 2023-05-20 14:32:54 CEST; 1min 24s ago Main PID: 21899 (code=exited, status=0/SUCCESS) CPU: 1ms Mai 20 14:32:54 proyectosbeta-Lenovo-ideapad-720S-14IKB systemd[1]: Starting PostgreSQL RDBMS... Mai 20 14:32:54 proyectosbeta-Lenovo-ideapad-720S-14IKB systemd[1]: Finished PostgreSQL RDBMS.